PC Review


Reply
Thread Tools Rate Thread

chinese (UFT-8) in csv files created by a server

 
 
Hugo Scott
Guest
Posts: n/a
 
      8th Dec 2008
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 With Quote
 
 
 
 
Hugo Scott
Guest
Posts: n/a
 
      8th Dec 2008

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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Chinese Without Knowing Chinese – A complete guide to Computer-aided Chinese Reading JimPro Windows Vista General Discussion 30 12th Jun 2008 01:35 AM
Can a macro be created to keep a list of files created by a user =?Utf-8?B?SmFjb2Jz?= Microsoft Access Forms 2 11th Aug 2006 08:03 PM
Unable to access files created under Win 2000 Adv. Server srulison@mail.state.il.us Microsoft Windows 2000 Advanced Server 3 28th Sep 2004 08:26 PM
Temp files created on Windows 2000 Server SP 3 Brian Boyle Microsoft Windows 2000 2 5th Nov 2003 09:27 PM
Re: access denied by deleting files on w2k server, created by a xp client Brian Oakes Microsoft Windows 2000 Networking 0 8th Aug 2003 03:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:59 PM.