Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) 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: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 15 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
__________________

Dell Axim x51v
Reply With Quote
  #6 (permalink)  
Old 09-16-2007, 04:33 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace JamesC Basic4ppc Wishlist 4 11-18-2008 03:45 PM
Help with regex match and replace tsteward Questions (Windows Mobile) 1 09-02-2008 04:38 PM
Character encoding / code pages TWELVE Questions (Windows Mobile) 10 05-29-2008 03:17 PM
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 11:11 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0