Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

character set mapping (western european to US ascii)

588400Jul 21 2008 — edited Jul 22 2008
Hi everyone,

I am trying to convert a string with western european character set to US Ascii character set. Idea is to remove all "accent" on top of the "accented characters"

Here is an example .À should be converted to A.

I have tried using the following, but some characters are not converted.

SELECT decompose(to_single_byte('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßïîíìëêéèçæåäãâáà'))
FROM dual;

The result is :

AAA?A??CEEEEIIII??OOO?O??UUUUY??iiiieeeec??a?aaa

As you can see, 12 characters converted to questions marks, meaning they didnt converted properly like others.

I will appreciate any suggesstions or code example of how people have tried to convert western european character set to US Ascii.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2008
Added on Jul 21 2008
3 comments
745 views