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.


loadcsv and accent


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2007, 10:32 AM
Newbie
 
Join Date: May 2007
Posts: 6
Default loadcsv and accent

hello,
i use the function : Tableinterv.LoadCSV("interv.csv", ";", 0,true)
to load a csv file in a table, it works but in french we have caracter with accent for exemple : é
all caracters with accent are ingnored

example: the word été become t.

can you help me ?
Reply With Quote
  #2 (permalink)  
Old 06-21-2007, 10:48 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

LoadCSV does support accent characters (it uses UTF-8 encoding).
How did you create the CSV file?
Microsoft Excel doesn't support accent characters when you save CSV files.
Reply With Quote
  #3 (permalink)  
Old 06-21-2007, 01:06 PM
Newbie
 
Join Date: May 2007
Posts: 6
Default

i create myself the csv file, i don't use excel.

i 'll work without accent.

thank you for the answer
claveriel
Reply With Quote
  #4 (permalink)  
Old 06-21-2007, 01:12 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I think that you could use XML format instead and retain the accent.

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #5 (permalink)  
Old 06-21-2007, 01:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Again, there is no problem to work with accent characters.
How did you create the CSV file?
Did you save it encoded with UTF-8?
Reply With Quote
  #6 (permalink)  
Old 06-21-2007, 01:39 PM
Newbie
 
Join Date: May 2007
Posts: 6
Default

To create my csv, i export my data from an other sotfware.
i want to modify and create datas in the pocket pc. I save the data to a csv file in the pocket.

After the csv files go to the pc with activesync.
and i import my data into my other software.

this en exemple of a c sv file :

barthe;2004;N;Maïs consommation;10.88
cousin;2004;N;Maïs consommation;0
pignada;2004;N;Graines fourragères;60.46

Last edited by claveriel : 06-21-2007 at 01:53 PM.
Reply With Quote
  #7 (permalink)  
Old 06-21-2007, 02:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Try to load this file (it is the data you've posted).
It was created with Notepad and it was saved encoded with UTF-8.
Attached Files
File Type: txt 1.txt (120 Bytes, 35 views)
Reply With Quote
  #8 (permalink)  
Old 06-21-2007, 02:44 PM
Newbie
 
Join Date: May 2007
Posts: 6
Default

Ok it's good ,

thank you Erel
Reply With Quote
  #9 (permalink)  
Old 11-15-2007, 04:50 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I have the symmetrical problem: In the small soft I have developed, I save some data using Table.SaveCSV but if I open it in ThinkingRock (which is a Java program), I get garbage (the unicode indicator at the beginning and garbaged accented characters). Is there a way to convert to high ASCII the text saved in the CSV file, instead of UTF8? Or, how can I export data containing accented characters with SaveCSV to a software that does not seem to understand the Unicode?

Thank you very much in advance.

Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
Reply With Quote
  #10 (permalink)  
Old 11-15-2007, 05:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

What encoding does your other application use?
If you know the code page you can convert the entire text using two Bitwise objects.
This is the list of code pages: http://msdn2.microsoft.com/en-us/library/ms776446.aspx
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
Table1.LoadCSV s_ostap Russian Forum 3 07-03-2008 09:30 AM
Probleme mit LoadCSV und ANSI - UTF-8 Holger.D German Forum 2 05-13-2008 08:23 PM
LoadCSV from a variable nsidney Questions & Help Needed 7 01-30-2008 02:29 AM


All times are GMT. The time now is 11:13 AM.


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