Japanese Language in Suse

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Japanese Language in Suse
# 1  
Old 12-06-2011
Japanese Language in Suse

I had just added Japanese language as my secondary language with yast and I am still not able to view Japanese characters (they appear mangled)

I've copied two text files from windows to the SUSE Linux Enterprise Server 10 (i586), one with UTF and the other with ANSI. When viewed with cat and more command all I am getting is weird characters

Code:
my-mnag0:/tmp # cat jptest-utf8.txt
良い朝my-mnag0:/tmp # 
my-mnag0:/tmp # 
my-mnag0:/tmp # cat jptest.txt
oD0gmy-mnag0:/tmp #

Any idea what I am doing wrong? Do I need to reboot for the affect to take place?
# 2  
Old 12-06-2011
can you post the output from the following command?

Code:
locale

lets see what it is set to.
# 3  
Old 12-07-2011
locale

my locale output:

Code:
my-xftp0:~ # locale
LANG=POSIX
LC_CTYPE=en_GB.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
my-xftp0:~ # date
Wed Dec  7 13:22:53 MYT 2011

my-mnag0:/usr/X11R6/lib/X11/locale # locale
LANG=POSIX
LC_CTYPE=en_US
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

---------- Post updated 12-07-11 at 12:30 AM ---------- Previous update was 12-06-11 at 09:23 PM ----------

ok, so i changed my locale to read japan and edited my environment file and rebooted the server

Code:
my-xftp0:~> locale
LANG=ja_JP.UTF-8
LC_CTYPE=ja_JP.UTF-8
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=
my-xftp0:~> whoami
priti

this is the root user local reading:

my-xftp0:~ # locale
LANG=POSIX
LC_CTYPE=ja_JP.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
my-xftp0:~ # whoami
root

as a normal user, my df -h commands shows the following output:

Code:
my-xftp0:~> df -h
Filesystem          サイズ  使用  残り 使用% マウント位置
/dev/sda1              50G  413M   47G   1% /
devtmpfs              1.9G  140K  1.9G   1% /dev

but as mt root the output is all in standard english

and this is my language output:

Code:
my-xftp0:~ # more /etc/sysconfig/language

## Path:        System/Environment/Language
## Type:        string(scim,uim,kinput2,kinput2-canna,kinput2-wnn,nabi,wnn,atokx,xcin,none)
## Default:     ""
#
# A default input method to be used in X11 can be selected here.
# If this variable is set and a script with the same name
# as the value of this variable exists in the directory /etc/X11/xim.d/
# this script is sourced when X11 is started to start an input method.
#
# The special value "none" (/etc/X11/xim.d/none) means:
# Do not use any input method at all.
#
# For more details see the comments at the top of /etc/X11/xim.
#
INPUT_METHOD=""
## Path:        System/Environment/Language
## Description:
## Type:        string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-
8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859
-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859
-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,
lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8R,ru_RU.UTF-8,sk_SK.ISO-8859
-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-8)
## Default:     ""
## Config:      OpenOffice.org,groff,ispell,kde,kdm,profiles,susehelp,susewm,tetex,wdm
#
#
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="ja_JP.UTF-8"

## Type:        string
## Default:     ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL=""

## Type:        string
## Default:     ""
#
# This defines the locale in which messages of programs and
# libraries with i18n-support should appear if a translated
# message catalog for the library or the program is installed.
# This also provides localized yes/no answers.
#
RC_LC_MESSAGES=""

## Type:        string
## Default:     ""
#
# This defines the locale for character handling and classification.
# The libc uses this value in language dependent function calls, such
# as e.g. uppercase/lowercase mapping of foreign characters.
#
RC_LC_CTYPE="ja_JP.UTF-8"

## Type:        string
## Default:     ""
#
# This defines the locale for sorting strings and characters.
# It is used by the libc to obtain the alphabetical order of characters
# (e.g. for string comparisons).
#
RC_LC_COLLATE=""

## Type:        string
## Default:     ""
#
# This defines the locale for date and time output formats.
# i.e.: 06/09/1999 vs. 09.06.1999
#
RC_LC_TIME=""

## Type:        string
## Default:     ""
#
# This defines the locale for formatting and reading numbers.
# i.e.: 1,234.56 vs. 1.234,56
#
RC_LC_NUMERIC=""

## Type:        string
## Default:     ""
#
# This defines the locale for formatting and reading money values.
#
RC_LC_MONETARY=""

## Type:        string
## Default:     ""
#
# This defines the locale for format of paper.
#
RC_LC_PAPER=""

## Type:        string(ctype)
## Default:     ctype
#
# This defines if the user "root" should use the locale settings
# which are defined here.
# Value "ctype" means that root uses just LC_CTYPE. 
#
ROOT_USES_LANG="ctype"

## Type:        yesno
## Default:     no
#
# Workaround for missing forward of LANG and LC variables
# of e.g. ssh login connections.
#
AUTO_DETECT_UTF8="no"

## Type:        string
## Default:     ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="ja_JP"
my-xftp0:~ #


Last edited by hedkandi; 12-07-2011 at 01:29 AM..
# 4  
Old 12-07-2011
Hmm, can you post the output from:

Quote:
file -i jptest-utf8.txt
and
file -i jptest.txt
# 5  
Old 12-08-2011
Code:
my-mnag0:/tmp # file -i jptest-utf8.txt
jptest-utf8.txt: text/plain; charset=utf-8
my-mnag0:/tmp # file -i jptest.txt
jptest.txt: audio/mpeg

Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Japanese Language support (Montavista)

Hi, I am working on Montavista linux. Japanese language is not getting rendered. I executed fc-list command and found that japanese fonts were not installed. But adding sazanami-gothic.ttf from the web is also not working, fc-list does not display japanese fonts yet. How can i add... (0 Replies)
Discussion started by: teluser123
0 Replies

2. UNIX for Dummies Questions & Answers

Typing in Japanese language

Hi. I am running Solaris 10,HPUX 11.31 and AIX 6.1. I am trying to get my system to write in Japanese. I can choose the Japanese language for the system to display, but I cannot figure out how to write in Japanese. I have set up my system, and Mozilla (including the menu and web pages) to display... (1 Reply)
Discussion started by: meeraramanathan
1 Replies
Login or Register to Ask a Question