Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to escape special characters in Oracle?

I have the following string that I’m trying to convert to UTF-8 :

Naïve file

I tried to convert it using Oracle :

UTL_URL.ESCAPE('Naïve file')

This returns Na%EFve%20file

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Accoding to this converter, the result should be : Na%C3%AFve%20file (which is what I’m expecting)

Does any know how to fix that please ?

Thanks.

>Solution :

Default character in UTL_URL.ESCAPE set is ISO-8859-1.

Try UTL_URL.ESCAPE('Naïve file', TRUE, 'UTF-8')

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading