Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Replace encoding UTF 8 by UTF 7


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-16-2007, 02:38 PM
EdQas's Avatar
Junior Member
 
Join Date: Aug 2007
Location: French Riviera
Posts: 35
Default Replace encoding UTF 8 by UTF 7


I have a CSV file encoded in UTF 7 (french specifications, like : Président). When i open the CSV (loadcsv), it looks be encoded in UTF8 (english specifications : no accent, like : Prsident).
How can i do to open my file saved in UTF 7 ?

Thank you very much for your help.

Have a nice sunday on our beautiful earth.
__________________

Dell Axim x51v
Reply With Quote
  #2 (permalink)  
Old 09-16-2007, 03:00 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,956
Default

UTF8 does support these characters.
The problem is probably because of different standards between UTF7 and UTF8.
Do you need to convert it once or many times?
Can you upload this file (or a part of it)?
Reply With Quote
  #3 (permalink)  
Old 09-16-2007, 03:31 PM
EdQas's Avatar
Junior Member
 
Join Date: Aug 2007
Location: French Riviera
Posts: 35
Default

Hi Erel,
Yes, i can upload without any problem my csv.

Here's a example :
In Excel (or notepad) : dépense effectuée au profit de la collectivité

once uploaded in a combobox : dpense effectue au profit de la collectivit

I'll have to convert it many times. The csv file is updated by many desktops. In my project, i would want to update the csv file in my ppc once a week.



What do you think about this Doctor ?
__________________

Dell Axim x51v
Reply With Quote
  #4 (permalink)  
Old 09-16-2007, 03:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,956
Default

First note that Excel saves CSV files encoded with ASCII which means it will remove all the special characters.
If you are working with Notepad you should use Save As... - Encoding - UTF8.
Attached is a small example.
Please upload the csv file (so I could see the encoding).
Attached Files
File Type: zip utf8.zip (451 Bytes, 5 views)
Reply With Quote
  #5 (permalink)  
Old 09-16-2007, 04:15 PM
EdQas's Avatar
Junior Member
 
Join Date: Aug 2007
Location: French Riviera
Posts: 35
Default

Many thanks for your help Erel !

Here's a file made by Excel with 3 rows.

Attention, in fact, my file is a .rar file, not a .zip file !
tks
Attached Files
File Type: zip test.zip (589 Bytes, 4 views)
__________________

Dell Axim x51v
Reply With Quote
  #6 (permalink)  
Old 09-16-2007, 04:33 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,956
Default

As I wrote Excel doesn't save the file in a proper encoding.
I guess that you see it right on your computer.
This is how I see it:
Picture1.jpg

It probably shows some characters with the computer's default settings.
If you create the file with Notepad and save it as UTF8 it will work properly.
Reply With Quote
  #7 (permalink)  
Old 09-16-2007, 04:36 PM
EdQas's Avatar
Junior Member
 
Join Date: Aug 2007
Location: French Riviera
Posts: 35
Default

Thank you very much Erel !
Using a "really" text editor (notepad++), i could see that M$ Excel wasn't so good to update my CSV file for my app' !!

Ed
__________________

Dell Axim x51v

Last edited by EdQas : 09-16-2007 at 05:55 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
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
Character encoding / code pages TWELVE Questions & Help Needed 10 05-29-2008 03:17 PM
Find and Replace JamesC Basic4ppc Wishlist 0 05-16-2008 02:40 AM
Find & replace bug: LineCutter Bug Reports 5 02-11-2008 08:57 PM
Search and Replace on Device IDE Woinowski Basic4ppc Wishlist 1 01-19-2008 11:50 PM


All times are GMT. The time now is 08:32 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0