1834584 Members
3525 Online
110069 Solutions
New Discussion

character "€"

 
Ludovic Derlyn
Esteemed Contributor

character "€"

hi,

How to do to set character "€" in HPUX ?

I have set LANG=ISO8859-15 and LANG=fr_FR.iso885915@euro, doesn't wotk

/etc/kdblang is set to USB_PS2_DIN_French_Euro

HPUX is 11iv2
Any ideas ?

Regards
L-DERLYN
7 REPLIES 7
Ludovic Derlyn
Esteemed Contributor

Re: character "€"

character is euro, not recognized also on website ;-)

Wim Rombauts
Honored Contributor

Re: character "€"

Both your locale AND your terminal have to be correct.

What terminal device are you using ? dtterm for instance

When my user has locale en_US.utf8, I cannot display the â ¬ symbol on my dtterm, since my dtterm is not configured to display multibyte characters (like â ¬ in the utf8 character set)

When my user has locale en_US.iso88591, I can display the â ¬ symbol in my dtterm, but not in azn xterm for instance, neither in an hpterm.
Ludovic Derlyn
Esteemed Contributor

Re: character "€"

hi

thanks for your response

Problem occurs with SAP
Transfert files.txt with euro character is not interpreted correctly
i have tested a file with euro character, transfert from windows to Unix, same result

Regards

L-DERLYN
Wim Rombauts
Honored Contributor

Re: character "€"

Keep in mind that the windows character set is not the same as the one on unix.
If I am not mistaken, windows in Europe generally uses mswin1252. It's almost the same as iso8859.15, except some new, special symbols, and the euro symbol may be one of them.

It is allways important that the chracter set used to create a file, is the same as (or a subset of) the one used to read the file. That is probably not your case.

This is of course a probable cause of your issue, not yet the solution. I once found a codepage translator that could convert windows character set to unix locales. If you can find codeset pages, you could check the codepoints for the euro-symbol in both character sets, and with some sed-commands, you can probably convert your textfile.
Some internet searches will be necessary I'm afraid.

Ludovic Derlyn
Esteemed Contributor

Re: character "€"

hi

thanks for your response
I have this problem from unix to unix so i have tested with windows to unix, and same things

Regards
Wim Rombauts
Honored Contributor

Re: character "€"

A few further things to try to resolve this issue. I'm half in the dark here, but trying to help.

Are these two different systems ? Or 2 users on the same system.
If two different systems :
-What is in /etc/rc.config.d/LANG of both of them ?
-On the first system, can you see the file there with the euro-symbol, and you don't with the same tool on the second system ?
-Is there in the .profile of the user(s) on one of the systems a "export LANG=..." ? If so, remember that the LANG setting is picked up when the shell is started, so just setting the LANG doesn't do a thing, you need to start a new shell after setting the LANG variable.
You say "I have set LANG=ISO8859-15 and LANG=fr_FR.iso885915@euro", if that is literally, LANG=ISO8859-15 is incorrect, it missas a language and a territory. (Look at locale -a for possibilities)
Ludovic Derlyn
Esteemed Contributor

Re: character "€"

incident is open to hp support, because it's not a problem of printing but a problem SAp and Hp

Thanks a lot !