Sponsored Content
Full Discussion: Encoding Type
Top Forums UNIX for Dummies Questions & Answers Encoding Type Post 302398427 by jim mcnamara on Wednesday 24th of February 2010 02:32:00 PM
Old 02-24-2010
the locale command shows encoding, if any is set.
Code:
locale

Or are you asking what encoding is available?
Code:
locale -a

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

String type to date type

Can one string type variable changed into the date type variable. (1 Reply)
Discussion started by: rinku
1 Replies

2. Programming

array type has incomplete element type

Dear colleagues, One of my friend have a problem with c code. While compiling a c program it displays a message like "array type has incomplete element type". Any body can provide a solution for it. Jaganadh.G (1 Reply)
Discussion started by: jaganadh
1 Replies

3. UNIX for Dummies Questions & Answers

encoding

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

4. 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

5. Shell Programming and Scripting

Araic Encoding

hi folks , I have a shell script which contain SQL query that dump some data from the DB in arabic and this data is written to a file in unix machine but the problem that the arabic data is appear like ??????????|111|???????? even when I move it to my windows XP machine. Any one have an Idea... (2 Replies)
Discussion started by: habuzahra
2 Replies

6. Shell Programming and Scripting

UTF8 encoding

Hi experts, I have a gz file from other system(solaris), which is ftped to our system(solaris). After gunzip, the file is a xml file and we are using ORACLE built in xml transformiing tool ORAXSL to transform XML to TXT. Now the issue is we come accross issue regarding UTF8 as below:... (1 Reply)
Discussion started by: summer_cherry
1 Replies

7. 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

8. Solaris

Encoding problem

Hi All, Hope you can help me with the below :). 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 ... (4 Replies)
Discussion started by: /dev/bag
4 Replies

9. Solaris

View file encoding then change encoding.

Hi all!! I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m 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
XmCvtXmStringTableToTextProperty(library call)							    XmCvtXmStringTableToTextProperty(library call)

NAME
XmCvtXmStringTableToTextProperty -- A function that converts from XmStringTable to an XTextProperty Structure SYNOPSIS
#include <Xm/Xm.h> int XmCvtXmStringTableToTextProperty (display, string_table, count, style, text_prop_return) Display *display; XmStringTable string_table; int count; XmICCEncodingStyle style; XTextProperty *text_prop_return; (void) DESCRIPTION
XmCvtXmStringTableToTextProperty converts the XmStrings in the specified XmStringTable into an XTextProperty structure. The function sets the encoding member of text_prop_return to an Atom for the specified display naming the encoding determined by the speci- fied style, and it converts the first count compound strings in the specified XmStringTable to this encoding for storage in the text_prop_return value member. Following are the possible encoding styles: XmSTYLE_COMPOUND_STRING The encoding is _MOTIF_COMPOUND_STRING. The function converts each specified XmString to a compound string in Byte Stream format. XmSTYLE_COMPOUND_TEXT The encoding is COMPOUND_TEXT. The function converts each specified XmString to compound text. XmSTYLE_LOCALE The encoding is the encoding of the current locale. The function converts each specified XmString to the encoding of the current locale. XmSTYLE_STRING The encoding is STRING (plain C strings encoded in ISO8859-1), and the function converts each specified XmString to STRING. XmSTYLE_TEXT If all specified XmStrings are fully convertible to the encoding of the current locale, the encoding is the encoding of the cur- rent locale, and the function converts each specified XmString to the encoding of the current locale. Otherwise, the encoding is COMPOUND_TEXT, and the function converts each specified compound string to compound text. XmSTYLE_STANDARD_ICC_TEXT If all specified XmStrings are fully convertible to STRING, the encoding is STRING, and the function converts each specified XmString to STRING. Otherwise, the encoding is COMPOUND_TEXT, and the function converts each specified XmString to compound text. display Specifies the connection to the X server. string_table Specifies a set of XmStrings. count Specifies the number of XmStrings to be converted in string_table. style Specifies the manner in which the property is encoded. text_prop_return Returns the XTextProperty structure. To free the storage for the value member of the XTextProperty, use XtFree. RETURN VALUES
If conversion depends on the locale and the current locale is not supported, the function returns XLocaleNotSupported. In both of these cases, the function does not set text_prop_return. To determine whether the function is guaranteed not to return XLocaleNotSupported, use XSupportsLocale. RELATED INFORMATION
XmCvtXmStringToByteStream(3), XmCvtTextPropertyToXmStringTable(3), and XmStringTable(3). XmCvtXmStringTableToTextProperty(library call)
All times are GMT -4. The time now is 01:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy