Pavel Solopov

unread,
Feb 25, 2015, 9:10:02 AM2/25/15
to mitappinv...@googlegroups.com
Hi all,
I need your advice.
In my application I create .csv file (semi-comma separated).
If I open this file through "import data from text" in Excel, there correct recognised UTF-8 encoding and all data displayed correctly.
But if I open file by double click, cyrillic text displayed incorrectly.

Is there are any way to encode text where I create file or give some directive to Excel that text in the file encoded by UTF-8?

Thank you in advance.

Pavel.

  

SteveJG

unread,
Feb 25, 2015, 9:16:27 AM2/25/15
to mitappinv...@googlegroups.com

Taifun

unread,
Feb 25, 2015, 10:08:24 AM2/25/15
to mitappinv...@googlegroups.com
you have to store the file in UTF-8 format, see also here
How to get european or chinese characters from Web ResponseContent
Taifun

Pavel Solopov

unread,
Feb 25, 2015, 10:41:25 AM2/25/15
to mitappinv...@googlegroups.com
Hi Taifun,
I create .csv file in my application by File component. And want to open one on a PC.
How can I set encoding for File component?

Pavel Solopov

unread,
Feb 25, 2015, 11:08:40 AM2/25/15
to mitappinv...@googlegroups.com
Hi Steve,
for my regret must links are about how make csv from Excel, not about how make csv for Excel.
In one link describe similar issue (http://stackoverflow.com/questions/6002256/is-it-possible-to-force-excel-recognize-utf-8-csv-files-automatically), thera recomended add BOM in begine of the file.
But my Excel ignore it and display BOM as ordinar simbols... 

Taifun

unread,
Feb 25, 2015, 11:45:26 AM2/25/15
to mitappinv...@googlegroups.com
I create .csv file in my application by File component. And want to open one on a PC.
How can I set encoding for File component?
this sounds like an Excel issue then
did you try the suggestions in your stackoverflow link?
Taifun 

Pavel Solopov

unread,
Feb 25, 2015, 12:10:01 PM2/25/15
to mitappinv...@googlegroups.com
Sory, Taifun, my English not so well. What do you mean "stackoverflow link"?

Pavel

Taifun

unread,
Feb 25, 2015, 12:27:33 PM2/25/15
to
this is your stackoverflow link http://stackoverflow.com/questions/6002256/is-it-possible-to-force-excel-recognize-utf-8-csv-files-automatically

I do not have Excel, but I tried Libre Office, and as you can see it works fine to import a file (but only if you use the correct encoding in Libre Office)




Taifun

Pavel Solopov

unread,
Feb 25, 2015, 1:13:57 PM2/25/15
to mitappinv...@googlegroups.com
No, my Excel don't recognize BOM and display it as content of cell.
But if I open file from Excel by "import from..." encoding and cyrilic recognized correct.
Also if I open file by notepad and save it, after that Excel display cyrilic correct.

Pavel Solopov

unread,
Feb 25, 2015, 2:29:45 PM2/25/15
to mitappinv...@googlegroups.com
Continue to last message:
But it is not suitable way. I want open file from e-mail (application send one) without additional operations.

Pavel Solopov

unread,
Feb 26, 2015, 7:00:57 AM2/26/15
to mitappinv...@googlegroups.com
I locolise the problem.
Excel correct recognize BOM, but as I understood FILE component don't recognize escape sequence \u or \x, as a resoult when I try to write BOM it writed not like HEX, but like ordinary char.

Abraham Getzler

unread,
Feb 26, 2015, 1:35:15 PM2/26/15
to mitappinv...@googlegroups.com
The Web component has a HTML Text Decode block to encode hex,
if you want to try generating an inline BOM.

I don't know if it would survive passage through the File component.
Let us know?

See attached.

ABG
HTML_Text_Decode.jpg

Pavel Solopov

unread,
Feb 27, 2015, 7:34:26 AM2/27/15
to mitappinv...@googlegroups.com
Excellent!!!!!
Thank you, Abraham!!!

Such configuration gave needed  me result


Reply all
Reply to author
Forward
0 new messages