Midrange News for the IBM i Community

Posted by: renojim
enforcing utf-8
has no ratings.
Published: 20 Dec 2013
Revised: 23 Dec 2013 - 2903 days ago
Last viewed on: 04 Dec 2021 (4856 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

enforcing utf-8 Published by: renojim on 20 Dec 2013 view comments(6)

So, I'm reading a db2 table and creating an xml file with the data. Came across a name in the table that has an illegal utf-8 character. An umlaut or some such thing. Looks like an O with an apostrophe over it. I dunno'. Don't care, really. I write that to the xml, and it blows up later when that xml is used. I've been asked to find a way to write utf-8 characters to the xml. In other words, catch the umlauts and whatever, and get rid of them. I don't have a clue how to do it. Anybody know?

Return to midrangenews.com home page.
Sort Ascend | Descend