Russian character set issue.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Russian character set issue.
# 1  
Old 05-09-2016
Russian character set issue.

Hi All,

I'm facing issue while opening xls file while contains Russian/Siberian character
I tried various options which I could get from google but still issue persists hence thought of taking help here,

We are trying to export data from Oracle via shell script using sqlplus utility. After setting below 2 env variable,

Code:
NLS_LANG=RUSSIAN_CIS.CL8ISO8859P5
LC_ALL="en_US.iso88595"

And opening the file via "more" command I could see proper value,

Code:
17 новембер

But If I try to view it using "vi", I'm getting below value,

Code:
17 \335\336\322\325\334\321\325\340

And after opening the excel file I could see below value,
Excel :

Code:
17 ÝÞÒÕÜÑÕà

I wanted the excel sheet to display proper value. Any suggestion please.


Thanks,
Arvind.


Moderator's Comments:
Mod Comment Please use code tags as required by forum rules for data as well.

Last edited by RudiC; 05-09-2016 at 03:20 AM.. Reason: Added code tags for data
# 2  
Old 05-09-2016
What operating system are you using?

LC_ALL="en_US.iso88595" is an unusual locale name. On my system, there are locales named be_BY.ISO8859-5, ru_RU.ISO8859-5, sr_YU.ISO8859-5, and uk_UA.ISO8859-5; but none that use 88595 without a hyphen and none that use the ISO 8859-5 codeset for an English language locale.

To get a list of the locales that are available on your system, issue the command:
Code:
locale -a

and to limit it to locales using 8859-5, try:
Code:
locale -a | grep '8859-*5'

# 3  
Old 05-09-2016
Thanks Don for replying, below are the information,
OS : -
Code:
SunOS 5.10 Generic_150400-29 sun4v sparc sun4v

Output of
Code:
'locale -a | grep '8859-*'

as below,

Code:
de.ISO8859-15
de_AT.ISO8859-15
en_CA.ISO8859-1
en_GB.ISO8859-1
en_IE.ISO8859-1
en_IE.ISO8859-15
en_US.ISO8859-1
en_US.ISO8859-15
en_US.ISO8859-15@euro
es.ISO8859-15
es_MX.ISO8859-1
fr.ISO8859-15
fr_BE.ISO8859-15
fr_CA.ISO8859-1
iso_8859_1
it.ISO8859-15
pt_BR.ISO8859-1
pt_PT.ISO8859-15

# 4  
Old 05-09-2016
OK, and what would be your conclusions from above locale's output?
# 5  
Old 05-09-2016
8859-5 character encoding is not present in system. Hence I tried setting
Code:
LC_ALL=UTF-8

and
Code:
NLS_LANG=_.UTF8

and if i open output file generated shows me proper values with
Code:
more

command but when I send the file as attachment using
Code:
uuencode

command. Excel still shows me weird character. What could be wrong.
# 6  
Old 05-09-2016
Could you install the missing char encoding? Or, would recode or iconv be an option for you?
# 7  
Old 05-10-2016
Hi RudiC,

I tried iconv with various character set but it didn't help. After setting char type as UTF-8. If i check file type its shows
Code:
"data"

. Not sure if this information helps. Also I was thinking do I need to perform similar setting while sending mail via
Code:
uuencode

command.
Code:
recode

is not present on my system hence unable to check.

Thanks,
Arvind.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Trouble exporting Russian character

Hi All, I'm having trouble exporting Russian characters from Oracle database via shell Script. I'm setting below value in script, NLS_LANG=RUSSIAN_CIS.CL8ISO8859P5 Also in terminal setting of Tectia value for Euro character I'm selecting "ISO-8859-15 (0xA4)" and other value was "Windows... (2 Replies)
Discussion started by: arvindshukla81
2 Replies

2. Shell Programming and Scripting

How to set character limit on READ?

Hello, I created the following (snippet from larger code): echo -n "A1: " read A1 VERIFY=$(echo -n $A1|wc -c) if ; then echo -e "TOO MANY CHARACTERS" fi echo -n "A2: " read A2 echo -n "A3: " read A3 echo -e "Concat: $B1/$B2/$B3" Basically what it does is it... (4 Replies)
Discussion started by: jl487
4 Replies

3. UNIX for Dummies Questions & Answers

Character set problem

Hi, I'm trying to edit a file with vi, but all special characters (áéíóú etc) don't seem to show correctly. They don't seem to be supported by the OS (SunOS 5.10). I'm using MobaXterm as the terminal emulator, which is configured to use ISO-8859-1. The same charset is used on Solaris. If I open... (4 Replies)
Discussion started by: Subbeh
4 Replies

4. UNIX for Advanced & Expert Users

ASCII Character Set

I thought I would point this out. This has a lot of the non printing characters. ASCII Character Set (7 Replies)
Discussion started by: cokedude
7 Replies

5. Solaris

help me to change the character set

dears i am using solaris 10 i am facing a problem when i make setup for solaris i choose the country egypt and i select the language north america but i forget to do that the i found the date Jun written in arabic i want to change character set to written in english -rw-r--r-- 1 root ... (4 Replies)
Discussion started by: hosney00ux
4 Replies

6. Shell Programming and Scripting

Unix character set problem

Hi All, We are getting file into our unix box with multibyte characters. When we tried to view the file the record looks like this Frédéric Actually the data sent to us is Frédéric --> my locale charmap of unix is set to UTF8 only ... but still i am getting this problem. I... (6 Replies)
Discussion started by: sandeeppvk
6 Replies

7. Programming

character set conversion in unix C

Hi, Could anybody explain how to change the character set of a particular string in C in unix. we are using HP-UX as OS. We require to change the input string which is in cp1250 format to utf-8. A sample code would help. Thnx in advance (1 Reply)
Discussion started by: gucho
1 Replies

8. UNIX for Advanced & Expert Users

iconv -l and ANSEL character set

I am forced to use the ANSEL character set for some GEDCOM documents but must convert them to a more modern set for another app which doesn't recognize ANSEL. I am unable to locate an ISO code for ANSEL in a search of the web. Would someone plese identify the ANSEL character set from the list given... (4 Replies)
Discussion started by: Whiterock
4 Replies

9. Programming

character set solaris

hi , i am trying to work on a script that transforms some special Dutch characters and send them to a Xerox printer .. the problem is that while doing so iam unable to identify th correct character set that is used by solaris , to transfer these characcters to Xerox character set . thanks... (2 Replies)
Discussion started by: ppass
2 Replies

10. Solaris

latin 2 character-set with xterm

Hi, We have problems with the latin 2 Character-set with xterm. We have installed SunRay-Server with Solaris 8. Our Thinclients use hu- and cz-keyboards. I have set the right local-settings and xmodemaps. If I use the dtterm all is running fine. As soon as I use the xterm, it cannot display... (0 Replies)
Discussion started by: paho
0 Replies
Login or Register to Ask a Question