I have determined that I have no clue what I am doing.
Currently I can't tell if I have Unicode support or not in urxvt and I do not know how to test it. My Python scripts fail (see below) and if I try to copy and paste Japanese into the console I just get question marks.
I will be running TC 4.5.5, Xorg, Fluxbox.
What I am attempting to do is to write a simple little Python script that translates English into Japanese characters. It will all run in a terminal.
In Python when I try to do a print of:
print chr(0x3040)
I receive an error:
ValueError: chr() arg not in range(256)
When I try to do a print of
print u"\u4e2d"
I receive an error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u4e2d' in position 0: ordinal not in range(128)
I am pretty sure both of these errors mean that the console that I am using does not support Unicode, and I haven't figured out a way to setup a console that does support Unicode.
I would like to keep my keyboard (keymap) and locale set to US English, but I want the ability to display Unicode characters. Possibly in the future I may want to be able to change my keymap, but that will be a future thing that I am not worried about now.
The first thing that I tried was adding an option to my Xorg:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us,jp"
EndSection
But that does not appear to have worked or done anything. So far everything that I have been reading online has been geared around changing the keymap and the locale to other languages. I just need to be able to display the characters in the console. At this point I do not know where I am stuck at, or where to go from here. So any advice would be greatly appreciated.
When reading the README.xorg.conf it says that Xorg-7.5.tcz has all keyboard data included. Which means I just need to change the XkbLayout. So in theory I have the capability to do what I need to do, I just don't know how to do it.
Does anyone have any suggestions, or can point me in a direction and I can continue to try and do research? I really thought that this would be a fairly simple project