Jump to content

CUI and french chars


 Share

Recommended Posts

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 ?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 ?

wtfpl-badge-1.png

Link to comment
Share on other sites

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...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...