Sponsored Content
Top Forums UNIX for Dummies Questions & Answers AIX and Linux difference (character set) Post 302589047 by Jin_ on Tuesday 10th of January 2012 02:51:43 PM
Old 01-10-2012
AIX and Linux difference (character set)

I'm having a problem regarding the encoding of my files in Linux and AIX.

I have a file which can be viewed both in Linux and AIX (via NetApp mount). When I checked the encoding, they have difference.

In Linux, the file is encoded as ISO-8859 text. (checked by using "file" command). However, in AIX, the is encoded as ascii text. The file contains the characters "Æ, Ø, Ò, Ò, etc). I'm not sure if this is a OS difference. My assumption is that the Linux can decode the characters stated above, while in AIX is not.

Can someone please enlighten me?
Smilie

---------- Post updated at 03:51 AM ---------- Previous update was at 03:50 AM ----------

Please ignore the title. It should be AIX and Linux difference.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Difference between SET and SETENV

I never undestood exactly what's the difference between the SET and SETENV commands. One sets variables visible to all users and the other (SETENV) only to the specific user environment ? Thanks in advance, BraZil - thE heLL iS HEre :mad: !!! (2 Replies)
Discussion started by: 435 Gavea
2 Replies

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

3. UNIX for Dummies Questions & Answers

difference between set and export

Hi, can anybody tell me what is the difference between set and export in unix. -Ashish (1 Reply)
Discussion started by: shriashishpatil
1 Replies

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

5. AIX

difference between AIx and Linux and Unix

Sir , Can any body explain the difference between linux , Unix and AIx on command Reference all the command on AIx and unix is same or not please reply (2 Replies)
Discussion started by: arif185
2 Replies

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

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

8. Red Hat

Difference b/n AIX & Red Hat Linux Commands

Hi All, The scripts developed in AIX can be executed in Red Hat Linux too? Because, we are migrating OS from AIX to LINUX. Will there be any differences in commands? Thanks in advance!!! Regards, U (2 Replies)
Discussion started by: unme
2 Replies

9. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

10. UNIX for Dummies Questions & Answers

AIX to Linux command difference

Moving from AIX 6.1 to RHEL 6.6, I have noticed a few command differences. One that has been causing issue is a simple echo command when I have to use it this way -> "echo -e" On the AIX it outputs to "-e" but since RHEL has "-e" as an option for echo and hence it outputs to blank here. All... (3 Replies)
Discussion started by: aster007
3 Replies
MB_CONVERT_VARIABLES(3) 						 1						   MB_CONVERT_VARIABLES(3)

mb_convert_variables - Convert character code in variable(s)

SYNOPSIS
string mb_convert_variables (string $to_encoding, mixed $from_encoding, mixed &$vars, [mixed &$...]) DESCRIPTION
Converts character encoding of variables $vars in encoding $from_encoding to encoding $to_encoding. mb_convert_variables(3) join strings in Array or Object to detect encoding, since encoding detection tends to fail for short strings. Therefore, it is impossible to mix encoding in single array or object. PARAMETERS
o $to_encoding - The encoding that the string is being converted to. o $from_encoding -$from_encoding is specified as an array or comma separated string, it tries to detect encoding from $from-coding. When $from_encoding is omitted, detect_order is used. o $vars -$vars is the reference to the variable being converted. String, Array and Object are accepted. mb_convert_variables(3) assumes all parameters have the same encoding. o $... - Additional $vars. RETURN VALUES
The character encoding before conversion for success, or FALSE for failure. EXAMPLES
Example #1 mb_convert_variables(3) example <?php /* Convert variables $post1, $post2 to internal encoding */ $interenc = mb_internal_encoding(); $inputenc = mb_convert_variables($interenc, "ASCII,UTF-8,SJIS-win", $post1, $post2); ?> PHP Documentation Group MB_CONVERT_VARIABLES(3)
All times are GMT -4. The time now is 05:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy