Thread Subject:
urlread and accents

Subject: urlread and accents

From: greggory swiathy

Date: 7 Sep, 2005 08:04:30

Message: 1 of 4

Hello world!! :)

I try to read an url to find some data but I've noticed that urlread
doesn't understand accent and some special letters.
Is there any method to force urlread to read the accents??

ex: é è à ù û ê î ç

Thanks for your help

N.B.: this letters come from french language :)

Subject: urlread and accents

From: Matthew Simoneau

Date: 7 Sep, 2005 10:01:33

Message: 2 of 4

urlread was having some trouble with character encodings. I think I
sorted it out in the latest release. If you e-mail me directly, I
can send you the latest version.

Subject: urlread and accents

From: Nathan Fleming

Date: 7 Jul, 2012 21:07:09

Message: 3 of 4

"Matthew Simoneau" <matthew@mathworks.com> wrote in message <ef13590.0@webx.raydaftYaTP>...
> urlread was having some trouble with character encodings. I think I
> sorted it out in the latest release. If you e-mail me directly, I
> can send you the latest version.

I am having the same problem with version 2011a. How can I fix this?

Subject: urlread and accents

From: Matthew Simoneau

Date: 10 Jul, 2012 16:54:13

Message: 4 of 4

The workaround is to use URLWRITE, then fopen the file with the proper encoding, something like this:

tempfile = tempname;
urlwrite(url,tempfile);
f = fopen(tempfile ,'r','l','ISO-8859-1');
c = fread(f,'*char')';
fclose(f);
delete(tempfile)

We've got this in our bug database:
http://www.mathworks.com/support/bugreports/452134

Stay tuned to that page for updates on this issue in future releases.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
charset Matthew Simoneau 10 Jul, 2012 12:54:26
encoding Matthew Simoneau 10 Jul, 2012 12:54:22
urlread accent Nathan Fleming 7 Jul, 2012 17:04:28
rssFeed for this Thread

Contact us