Jump to content
Sign in to follow this  
Jango

CUI and french chars

Recommended Posts

Jango

Hello,

I made some search in the forum and i have not found the answer. I'm compiling my script with CUI option and i use ConsoleWrite to show error messages but the accentuated characters are not displayed correctly:

ConsoleWrite(@CRLF & "Ajoute le groupe " & $adgroup & " à " & $localgroup & @CRLF)

Here is the output:

Ajoute le groupe MYDOM/Domain Users Ó MYPC/Utilisateurs avec pouvoir

So the "à" shows "Ó"

Can some one help me ?

Share this post


Link to post
Share on other sites
Jango

does it only do it after compilation? or does it do it before too...

If i run it from Scite (menu: View -> Output [Checked]), the chars are corrects. When compiled and ran in a dos box the output is not correct

Share this post


Link to post
Share on other sites
Mobius

Bonjour Jango,

The character set between windows applications and the command shell are very different indeed.

I hope someone chimes in with a fool proof udf for you because my suggestion is just a quick fix.

ConsoleWrite(@CRLF & "Ajoute le groupe " & $adgroup &" "& Chr(133) &" "& $localgroup & @CRLF)oÝ÷ Ù§¶¬+mêbyǨ}Êz)Ú    B¦bq«b¢{hëZ® '^jíæ¬r(¯j[±©Ý¶¢¬*'²^­êkzǧµ«b¢w(uà¨Ê%yjâµî4ß~¡¯=ãV¦§~z¹¢©wá©©,^5ätߨ

Here is the output:

Ajoute le groupe MYDOM/Domain Users Ó MYPC/Utilisateurs avec pouvoir

So the "à" shows "Ó"

Can some one help me ?

Share this post


Link to post
Share on other sites
rover

Hello,

I made some search in the forum and i have not found the answer. I'm compiling my script with CUI option and i use ConsoleWrite to show error messages but the accentuated characters are not displayed correctly:

ConsoleWrite(@CRLF & "Ajoute le groupe " & $adgroup & " à " & $localgroup & @CRLF)oÝ÷ Øw«z+-ê.¶­r^:.µé^º.¥ãã?u,z»`ð¿Rإƭzêìj÷¦¯¢*ÿr^Jaz«¨¶«¨¶ÈhÂÊ®¢Ú®¢ÐÊ&zÞéiïêº^%©à¡K
«Nȱæ«rè®é¢°¡j´è9é®®

I see fascists...

Share this post


Link to post
Share on other sites
Jango

Thank you i will use this CharToOEM func

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×