Solved

translate japanese character with ''

Posted on 2011-03-23
3
438 Views
Last Modified: 2012-05-11
Hi ,
i have japanese chracter which looks like below i want to remove them i am on 9.1 aix. how can i do it.
Thanks

aa ¿¿¿¿¿¿¿¿¿¿ Notes¿¿¿¿¿¿¿¿¿¿¿¿

want it to look like aaNotes

(Sorry looks like expert exchange converted them to question mark but this is japnese chracter in real)
0
Comment
Question by:sam2929
  • 2
3 Comments
 
LVL 4

Expert Comment

by:vinaypatki
ID: 35197704
See if this can help.
http://www.justskins.com/forums/insert-french-character-to-120500.html

Sorry for providing link rather than a solution. Could understand upto a limit...
0
 
LVL 37

Expert Comment

by:momi_sabag
ID: 35197871
depending on the encoding you use, those japanese characters are using a specific range of values (each value represents a character)
you could write a user function which remove the characters with those values, or you could try to use an existing function such as replace and translate
http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/r0000862.htm?resultof=%22%74%72%61%6e%73%6c%61%74%65%22%20%22%74%72%61%6e%73%6c%61%74%22%20

which works on the characters and not their numeric values (might be easier)
0
 
LVL 37

Accepted Solution

by:
momi_sabag earned 500 total points
ID: 35197889
using translate will be the simplest solution,
something like


select translate(column_to_be_translated, '', 'all your japanese characters come here')

this will translate all the japanese characters to spaces,
then

select replace(translate(column_to_be_translated, '', 'all your japanese characters come here'), ' ', '')
 

will remove those spaces
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question