Solved

translate japanese character with ''

Posted on 2011-03-23
3
423 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now