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

Go Back   Android Development Forum - Basic4android > Foreign Languages > French Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Problème d'encodage d'ecriture. Besoin d'aide!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2010, 03:51 PM
sitajony's Avatar
Basic4ppc Veteran
 
Join Date: Mar 2010
Location: France
Posts: 416
Awards Showcase
Beta Tester 
Total Awards: 1
Exclamation Problème d'encodage d'ecriture. Besoin d'aide!

Bonjour à tous!
Voilà j'ai un problème:
J'utilise le module Binaire pour ecrire dans un fichier:

FileOpen(c1,"data.dat",cRandom)
bin.New1(c1,True)
bin.WriteString("Texte avec les accents é à ù...")
FileClose(c1)

Le problème est le suivant:
Les accents sont inconnu lorsque je veux relire le fichier à la place des accents sa met ça:

Texte avec les accents ? ? ?...

Quelqu'un a une suggestion?
Reply With Quote
  #2 (permalink)  
Old 01-10-2010, 04:16 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Il faut utiliser
bin.New2(c1,1252)

1252 correspond à la CodePage Windows ANSI

avec bin.New1(c1,True)
True indique la CodePAge ASCII qui ne connaît que 128 charactères.
Flase serait la UTF-8 CodePage, mais là, les codes pour les charactères accentués sont codés sur 2 bytes.

Salutations.
__________________
Klaus
Switzerland
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
probleme !!! philsand77 French Forum 5 11-04-2008 11:59 AM
Probleme mit Setup-Packet erstellen CetinTek German Forum 1 07-26-2008 01:57 PM
Probleme mit LoadCSV und ANSI - UTF-8 Holger.D German Forum 2 05-13-2008 08:23 PM
Probleme bei device.exe wegen goto-Befehl urgott German Forum 13 01-24-2008 10:01 AM
Probleme beim Einlesen von CSV Christian72D German Forum 1 01-07-2008 11:33 AM


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


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