Page 1 of 1 1
Topic Options
#159667 - 2006-03-23 11:37 AM writing french accentuation in a file
olivier Offline
Lurker

Registered: 2006-03-23
Posts: 4
hello everyone !

I'm trying to creat a little scripts that ask infos to a user, these infos are wrote in a file called perfs.js (thunderbird configuration).
It works but ... yes there a 'but' : the accentuation didn't work correctly.

there is the script, very simple :

? 'Configuration de votre messagerie '

? 'Introduisez votre Prénom et Nom :' GETS $var1
? 'Introduisez le nom de votre Institution :' GETS $var2
? 'Introduisez votre adresse email complète :' GETS $var3
? 'Introduisez votre username de messagerie (ex: abc123 ou 123) :' GETS $var4

? 'Prénom et nom : ' $var1
? 'Institution : ' $var2
? 'adresse email : ' $var3
? 'username : ' $var4
if open(3, "c:\kix\prefs.js", 5) = 0
$u = writeline(3, @CRLF + $var1)
$v = writeline(3, @CRLF + $var2)
$w = writeline(3, @CRLF + $var3)
$x = writeline(3, @CRLF + $var4)
endif

thank you for all your help !!!
Olivier

Top
#159668 - 2006-03-23 01:24 PM Re: writing french accentuation in a file
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
When don't the accents work? Is it the display, the input or when writing to file that it does not work.

I tested here and the display looks alright, but you must make sure that you are using UNICODE and not ASCII:
Code:
$=SetOption("ASCII","OFF")


Top
#159669 - 2006-03-23 01:52 PM Re: writing french accentuation in a file
olivier Offline
Lurker

Registered: 2006-03-23
Posts: 4
hello,

the accents don't work in the ouput on the console, and in the file too.
I put Setoption but didn't change anything ... s
This the exemple of the problem :

***********************************************
Introduisez votre Prénom et Nom livié
Introduisez le nom de votre Institution :siège
Introduisez votre adresse email complète :moi@ici.com
Introduisez votre username de messagerie (ex: abc123 ou 123) :999

Prénom et nom : olivi' <------- here the accent has been replaced by '
Institution : siSge <------- here the accent has been replaced by S
adresse email : moi@ici.com
username : 999
************************************************

Top
#159670 - 2006-03-23 02:45 PM Re: writing french accentuation in a file
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
true. it gets screwed for me aswell.

Edited by ewook (2006-03-23 02:49 PM)

Top
#159671 - 2006-03-23 03:21 PM Re: writing french accentuation in a file
olivier Offline
Lurker

Registered: 2006-03-23
Posts: 4
ha ... so ...

no idea anyone ?? Or may be another way to go ?

Top
#159672 - 2006-03-23 04:12 PM Re: writing french accentuation in a file
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
How about using the ASCII codes using the Chr(code goes here) function for the special characters? This works OK for me.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#159673 - 2006-03-23 04:16 PM Re: writing french accentuation in a file
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
It looks like the problem is that the user is typing the characters and they are getting mangled at that point.

I guess you could try using the ALT+Keypad combination - for example hold down the ALT key and type 130 on the numeric keypad to get "é" - but it's not very practical.

You could wrap it all up in a KiXforms GUI. It's a lot more work but it should get around the problem.

Top
#159674 - 2006-03-23 04:51 PM Re: writing french accentuation in a file
olivier Offline
Lurker

Registered: 2006-03-23
Posts: 4
thank you for your help !! D

ha .. Kixforms ? .. how can i do that ???

Top
#159675 - 2006-03-23 09:05 PM Re: writing french accentuation in a file
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
www.kixforms.org
_________________________
Co


Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 905 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.067 seconds in which 0.032 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org