The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell Uri Encoding Trump Shell Programming and Scripting 1 03-25-2009 09:22 PM
get the file encoding vinment AIX 1 12-12-2008 02:40 PM
get the file encoding vinment Shell Programming and Scripting 2 12-12-2008 12:39 PM
URL encoding Vichu Shell Programming and Scripting 8 08-27-2008 07:16 PM
encoding palmer18 UNIX for Dummies Questions & Answers 3 08-21-2007 09:35 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-17-2009
habuzahra habuzahra is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 29
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 what I have to do.
  #2 (permalink)  
Old 05-17-2009
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,754
You set (or your DBA set) NLS to Arabic, right?
You set the locale for your process running the SQL to Arabic? UTF16 at least. Since you mention Windows I'm assuming unicode:

A Quick Primer On Unicode and Software Internationalization Under Linux and UNIX
  #3 (permalink)  
Old 07-02-2009
Bashar Bashar is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 66
make sure your sql query is set the character set correctly either windows-1256 (cp1256) or utf-8. others might use latin1 as default for arabic

pass --default-character-set=XXXXXX to your mysql prompt line
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0