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.

load textfile with special characters (äöü)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-19-2007, 01:11 PM
bob bob is offline
Junior Member
 
Join Date: Oct 2007
Location: Germany / FÜ
Posts: 10
Unhappy load textfile with special characters (äöü)

hi,

I searched the forum, but unfortunately didn't find a solution for this.

I have to import a textfile (written with notepad) that contains German characters (Umlaute like ä,ö,ü). No matter how I try to read the text, either with

FileOpen(f1,"deutsch.txt",cread) or
FileOpen(f1,"deutsch.txt",cread,,cascii)

deutsch.txt contains
...
Kugeln/Aufnahme
Höchstes Break
...

I always get an empty box or a question mark (with cascii) instead of the character 'ö'. Is there a possibility to define a codepage prior to the import or is any other solution for this?

tia!!
Robert
Reply With Quote
  #2 (permalink)  
Old 11-19-2007, 01:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,728
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Load your file with Notepad.
Choose Save As - Encoding - UTF8.

Now load it with:

FileOpen(f1,"deutsch.txt",cread)
Reply With Quote
  #3 (permalink)  
Old 11-19-2007, 01:24 PM
bob bob is offline
Junior Member
 
Join Date: Oct 2007
Location: Germany / FÜ
Posts: 10
Default

unbelievable.... a (working) answer in a couple of minutes

thanks so much!

a completely pleased customer
robert
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
FileReadToEnd(c) when textfile has chinese will display ~!@#$ jamesz Bug Reports 1 10-26-2008 05:29 AM
how to display chinese characters (High-ASCII, double-byte) using sqlite3 dennychuang Questions (Windows Mobile) 5 05-22-2008 04:39 PM
Strange characters pmu5757 Questions (Windows Mobile) 2 09-30-2007 08:56 AM
somebody got an example load/save textfile? Stellaferox Questions (Windows Mobile) 4 06-14-2007 05:05 PM
Special Folders on PC BPak Questions (Windows Mobile) 2 06-01-2007 09:53 PM


All times are GMT. The time now is 05:55 AM.


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