LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 224
Default Convert UTF-16 Excel file to UTF-8 and back

If I save an Excel file with Japanese characters as "Text (Tab
delimited)", the Japanese characters are converted to question marks,
as expected with a plain text file. The same thing happens to some
other characters too, such as some (not all) accented characters in
some European languages.

If I save an Excel file as "Unicode Text" (xlUnicodeText), I get a tab-
delimited UTF-16 file. It works fine, preserving all the characters
correctly. However:

Our company has decided to do code reviews on these files, which are
frequently modified (the files are not actually programming code of
course, but since they are text the code review works fine). Our
company uses a code reviewing tool that is compatible with UTF-8, but
not compatible with UTF16.

The UTF-8 standard is compatible with the Japanese characters. We have
other UTF-8 files (not created by Excel) that have the Japanese
characters.

What we're doing now is saving two copies: one as plain text (not
unicode) and one as unicode (UTF-16). Then we use the plain text copy
for the code review, and the UTF-16 copy for production. But there are
two problems:

1) We can't effectively do the code review on changes to the Japanese
characters, since those characters are all converted to question marks
in the plain text version.

2) Since we're reviewing one file and using another in production,
there is the risk of accidentally using the wrong UTF-16 file in
production after reviewing a plain text file.

This is a large company with thousands of programmers, and there is
zero chance of getting them to use a different code reviewer
compatible with UTF-16.


Any suggestions? Is there any way in VBA to convert between UTF-8
files and UTF-16? files?


Thanks,

Greg
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert Excell 2007 file back to 2003 Sue Excel Discussion (Misc queries) 1 April 9th 07 04:40 PM
Convert Columns of Sensitive Information, and then convert back... William Elerding Excel Programming 1 October 12th 06 09:37 PM
need to convert paper document back to excel. TotallyLost Excel Discussion (Misc queries) 1 August 8th 05 04:26 AM
How do I convert webarchive back to excel Sasha Excel Discussion (Misc queries) 3 July 12th 05 01:18 PM
In Excel how do I convert back from having row and column NUMBERS. Willem Duyvesteyn Excel Discussion (Misc queries) 1 February 15th 05 06:41 PM


All times are GMT +1. The time now is 09:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"