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.


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: 2,985
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 02:33 PM
how to display chinese characters (High-ASCII, double-byte) using sqlite3 dennychuang Questions & Help Needed 5 05-22-2008 04:39 PM
Strange characters pmu5757 Questions & Help Needed 2 09-30-2007 08:56 AM
somebody got an example load/save textfile? Stellaferox Questions & Help Needed 4 06-14-2007 05:05 PM
Special Folders on PC BPak Questions & Help Needed 2 06-01-2007 09:53 PM


All times are GMT. The time now is 04:27 AM.


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