Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default chinese (UFT-8) in csv files created by a server

Hi

I have an online application written in PHP that exports database query
reults to a CSV file to be saved on the user's local machine and opened by
Excel

when the output is UTF8 encoded and the CSV file is opened in notepad all
the French accented charcaters and Chinese characters display fine.

However, when i open the same file in Excel French accented charcaters and
Chinese characters are wrong

If I change the output encoding to latin, then the French characters display
fine in Excel but not the Chinese ones.

I tried opening a new Excel sheet, pasting in some chinese and saving it as
csv format but the chinese just displayed as question marks - so this would
seem to suggest that csv just won't accept UTF-8 encoding.

So i turn to you as experts in all things Excel : do you know if csv has
something inherent that will always prevent it from displaying chinese
characters ? Or could there be some way to force the csv to accept this type
of encoding ?

thanks for any help you can give - even if it's just to tell me that what I
want to do can't be done, so that i can find another approach to the problem

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default chinese (UFT-8) in csv files created by a server


it's ok I've cracked it using xml output to an xls file





"Hugo Scott" wrote:

Hi

I have an online application written in PHP that exports database query
reults to a CSV file to be saved on the user's local machine and opened by
Excel

when the output is UTF8 encoded and the CSV file is opened in notepad all
the French accented charcaters and Chinese characters display fine.

However, when i open the same file in Excel French accented charcaters and
Chinese characters are wrong

If I change the output encoding to latin, then the French characters display
fine in Excel but not the Chinese ones.

I tried opening a new Excel sheet, pasting in some chinese and saving it as
csv format but the chinese just displayed as question marks - so this would
seem to suggest that csv just won't accept UTF-8 encoding.

So i turn to you as experts in all things Excel : do you know if csv has
something inherent that will always prevent it from displaying chinese
characters ? Or could there be some way to force the csv to accept this type
of encoding ?

thanks for any help you can give - even if it's just to tell me that what I
want to do can't be done, so that i can find another approach to the problem

thanks

Reply
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
Excel 2003 traditional chinese to simplified chinese SHO Excel Discussion (Misc queries) 0 December 1st 06 05:23 AM
Chinese characters - UTF8 CSV files [email protected] Excel Programming 8 August 24th 06 04:46 PM
Files Created By One Are Read-Only To Others vilja Excel Discussion (Misc queries) 0 June 8th 06 02:55 PM
Data from Programmatically created Excel into SQL Server Raj Excel Programming 0 January 20th 05 10:03 PM
Excel: help files in Chinese? Dan. Excel Discussion (Misc queries) 0 January 19th 05 09:09 AM


All times are GMT +1. The time now is 03:46 AM.

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

About Us

"It's about Microsoft Excel"