Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: French Accent in Windows Registry (A/W)

by Ieronim (Friar)
on Jul 27, 2006 at 16:05 UTC ( [id://564146]=note: print w/replies, xml ) Need Help??


in reply to Re: French Accent in Windows Registry (A/W)
in thread French Accent in Windows Registry

After your answer i realized that the problem is more interesting than i thought :) I tried to add a Russian word to registry, and it appeared to be far more tricky than i expected :) I will correct my previous comment.
*A APIs ("ANSI")
It means that Windows, not Win32::TieRegistry decides which charset is used in the input?

     s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print

Replies are listed 'Best First'.
Re^3: French Accent in Windows Registry (A/W)
by duc (Beadle) on Jul 27, 2006 at 16:48 UTC
    Well, Thanks for your kindness and If you do find a way to do it tell me, because I am sill looking.. I thought it would be easy :| I guess I was wrong :o BTW, I have tried from_to($val, "cp850","cp1252"), but still got "Pr,cis" instead of Précis...

      Add such a key via some std GUI registry tool and then see what Win32::TieRegistry returns for it. If you only get some 7-bit value, then try adjusting your "Regional and Language Options". I wasn't able to find very clear documentation on how the *A APIs transform values to/from Windows "UNICODE", but the implication seemed to be that the configured language determined how things are mapped. If, instead, only 7-bit characters can be used, then you'll need to use the *W calls from Win32API::Registry.

      - tye        

        Win32::TieRegistry accepts 8-bit strings, as I managed to insert russian word into registry. Win32::Tieregistry accepted it in the 'default' system encoding (cp1251 for me). I am almost sure that the default encoding is implicitly set by selecting locale in Regional options.

             s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print
      I cannot give you more help :) You must determine the encoding your terminal uses and the encoding your French Windows accepts. Nobody can do it for you without sitting at your computer ;)

           s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://564146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found