Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 14 of 14 total
Thread Reading a text file to a string
Sun, Feb 16 2014 3:40 PMPermanent Link

Doc

What can I do if the text file charset is not utf-8, but e. g. iso-8859-1 ?
Tue, Feb 18 2014 11:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Doc,

<< What can I do if the text file charset is not utf-8, but e. g. iso-8859-1
? >>

Which web server are you using ?  The web server is responsible for setting
the content type.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Feb 19 2014 2:39 AMPermanent Link

Doc

"Tim Young [Elevate Software]" wrote:
Which web server are you using ?  The web server is responsible for setting
the content type.

Oh, I don't know what kind of server my web hoster is using.
I'm speaking of a csv file. Before I put it into the output folder or upload it to my web I have to transform it to utf-8, otherwise I don't get the correct chars.
If I use a Java applet for reading such file I can specify the charset to use.
Mon, Feb 24 2014 4:11 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Doc,

<< Oh, I don't know what kind of server my web hoster is using. I'm speaking
of a csv file. Before I put it into the output folder or upload it to my web
I have to transform it to utf-8, otherwise I don't get the correct chars. If
I use a Java applet for reading such file I can specify the charset to use.
>>

Forget Java - it doesn't apply here.  The web server tells the browser what
type of content a given resource is, along with the encoding of the content.
The browser uses this information to determine how to convert the string
content into a Unicode string for use in the EWB application.  So, you're
going to have to figure out what web server your host is using, and then
make sure to set it up so that the .csv files are using the correct content
type/encoding.

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image