Encoding problem

Thread Tools Search this Thread
Operating Systems Solaris Encoding problem
# 1  
Old 06-05-2011
Encoding problem

Hi All,

Hope you can help me with the below Smilie.

I'm working on a script on SUN solaris and I'm facing a problem with the number encoding as shown below,

1 is encoded to 31 (this is ASCII so it's ok)
11 is encoded as B118 !!! don't know why
111 is encoded as B1580C !!! don't know why
22 is encoded as 3219

The chars are encoded to normal ASCII format. Does any one know what kind of encoding is this?

Thank you all,
# 2  
Old 06-05-2011
Excuse me for asking (my crystal ball has a nasty crack and is off for repair), but where are you entering those numbers, and where do you see that encoding?
# 3  
Old 06-06-2011
:-), It's SMS CDR (Call detail record). It is saved by the SMSC, But as I mentioned, the other chars are ok, It got this weired encoding only when there is more than one number.
For example: if you have this 1a1, you'll have 316131, but when you have it like this 11a it will be like this: B11861.

# 4  
Old 06-06-2011
The switch vendor could have implemented any kind of encoding they wanted, I think the best way to know is to refer the CDR description provided by the vendor. Also provide more data, if you want us to look and try.
# 5  
Old 06-06-2011
Thanks, Unfortunately I have no records description Smilie.
I will do more test and will provide more data to see if we can recognize it.


---------- Post updated at 05:27 AM ---------- Previous update was at 02:54 AM ----------

Hi Again,
I made a mistake, the weired encoding is happening only with English(chars & numbers) it's working normally only with Unicode chars, sorry about that, I made a few test as shown below,

text I sent --> System encoded text:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

View file encoding then change encoding.

Hi all!! Im using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . Im expecting / looking an output as UTF8 or ANSI / ASCII Is there command to display the files encoding? Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies

2. Shell Programming and Scripting

How to find the file encoding and updating the file encoding?

Hi, I am beginner to Unix. My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8. Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies

3. Shell Programming and Scripting

Cygwin vi XML file encoding problem

Hi, I have got a zip (binary) file transferred from MacOS (thus it has additional __MACOSX directory packed inside). On extracting this zip, there are few *.xml files available. When I opened this *.xml file in vim editor using Cygwin (on windows) the editor displayed in the bottom. I tried... (4 Replies)
Discussion started by: royalibrahim
4 Replies

4. UNIX for Dummies Questions & Answers

Encoding Type

Hi, Where can I find the encoding type in a unix server ? Thanks in advance !!! (1 Reply)
Discussion started by: risshanth
1 Replies

5. Shell Programming and Scripting

Encoding troubles

Hello All I have a set of files, each one containing some lines that follows that regex: regex='disabled\,.*\,\".*\"'and here is what file says about each files: file <random file> <random file> ASCII text, with CRLF line terminatorsSo, as an example, here is what a file ("Daffy Duck - The... (3 Replies)
Discussion started by: tukuyomi
3 Replies

6. AIX

get the file encoding

Hello! The system is AIX 5.3 Give please command or script to get the file encoding (1 Reply)
Discussion started by: vinment
1 Replies

7. Shell Programming and Scripting

get the file encoding

Hello! The system is AIX 5.3 Give please command or script to get the file encoding Thanks (2 Replies)
Discussion started by: vinment
2 Replies

8. Shell Programming and Scripting

URL encoding

Hi All, I want to do URL encoding using shell script in my project. I decided that the sed is the correct tool to do this. But I am unable achieve what I wanted using sed. kindly help me to get rid of this. My requirement is , there will be one URL with all special character, spaces etc... ... (8 Replies)
Discussion started by: Vichu
8 Replies

9. UNIX for Dummies Questions & Answers

Encoding Problem while using "|" (PIPE) as delimiter from Mainframe to Unix

We are facing a problem with PIPE (|) as a delimiter in one of our FTP flat files. We are constructing a Flat file in IBM-AIX and this contains various strings delimted by PIPE Symbol and then FTPing this to a Mainframe System The Mainframe program simply recieves this and FTPs the same... (1 Reply)
Discussion started by: seshendra
1 Replies

10. UNIX for Dummies Questions & Answers


Hi, I'm using putty and when I try to write it writes | (or when I try to write , it writes i) I tried to change settings/translation of putty but with no success I have KSH # locale LANG= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C"... (3 Replies)
Discussion started by: palmer18
3 Replies
Login or Register to Ask a Question