Operating System - HP-UX
1854677 Members
11363 Online
104102 Solutions
New Discussion

Printing Russian Character

 
Eida Hanafiah
Occasional Advisor

Printing Russian Character

Hi,
Does anyone have a clue on how to print russian character.

FYI, I'm able to show russian character when I set the locale to ru_RU.utf8, though I can't manage to print it out.

Here is my locale setting:
LANG=ru_RU.utf8
LC_CTYPE="ru_RU.utf8"
LC_COLLATE="ru_RU.utf8"
LC_MONETARY="ru_RU.utf8"
LC_NUMERIC="ru_RU.utf8"
LC_TIME="ru_RU.utf8"
LC_MESSAGES="ru_RU.utf8"
LC_ALL=


Regards,
Eida
11 REPLIES 11
Dennis Handly
Acclaimed Contributor

Re: Printing Russian Character

How are you printing it? Sending it to the display? To a printer?
You have correctly set the locale. What is the character and what is the hex bit pattern?
Eida Hanafiah
Occasional Advisor

Re: Printing Russian Character

I'm sending it to a printer.
I'm trying to print "Hello world" (Ð¿Ñ Ð¸Ð²ÐµÑ Ð¼Ð¸Ñ ) in russian character.
Eida Hanafiah
Occasional Advisor

Re: Printing Russian Character

Sorry, try to paste the russian character, though it is showing garbabe.
Dennis Handly
Acclaimed Contributor

Re: Printing Russian Character

>I'm sending it to a printer.

Does it work when you send it to your display?

What type of printer? Local, remote or network?

>I'm trying to print "Hello world" (à ¿à  à ¸à ²à µà  à ¼à ¸à  ) in Russian character. though it is showing garbage.

That's why I need the hex codes.
Eida Hanafiah
Occasional Advisor

Re: Printing Russian Character

Hi Dennis,

It works when I try to send it to display. I'm using putty to access the server and have set the translation behaviour to UTF-8.

The printer that I'm using is a network printer.

Please let me know how can I get the hex code.
Dennis Handly
Acclaimed Contributor

Re: Printing Russian Character

>The printer that I'm using is a network printer.

Does the printer have Russian fonts?

>Please let me know how can I get the hex code.

Redirect the output to a file. Then use:
xd -tx1 -tc file
Eida Hanafiah
Occasional Advisor

Re: Printing Russian Character

Hi Dennis,

I think the printer has a russian font. I try to print from Microsoft Wordpad and have the character printed correctly.

Attahced is the hex representation
Dennis Handly
Acclaimed Contributor

Re: Printing Russian Character

>Attached is the hex representation

Unfortunately I can neither display nor print them. :-(
Eida Hanafiah
Occasional Advisor

Re: Printing Russian Character

I wonder why, when I try on Linux it can. I guess it uses a ghostscript or CUPS to print. Though when printing thru a terminal it does give out garbage.

I wonder why, I can't print from terminal
Dennis Handly
Acclaimed Contributor

Re: Printing Russian Character

Eida Hanafiah
Occasional Advisor

Re: Printing Russian Character

Hi Dennis,
Thanks for the link. But I'm still looking a way to print this out.