Converting Native to ASCII
Here's a tutorial how to create Message Resource for Struts with unicode charset, and showing the text on your web application. Requirement : UltraEdit, JDK Installed. 1. Translate your properties (I'm using google translate) to Chinese or Other language that using unicode. 2. Copy the result of your translate to UltraEdit, but before paste the text, do conversion with Start - Conversion - ASCII to Unicode, then paste the copied text. 3. open console and direct to folder file, then type native2ascii [your file] [result file] -encoding UTF-8 4. Copy the text result to your Message Resources, dont forget, to set your content type to text/html with charset UTF-8 ( )
Published by Nirantara
Nirantara is an Indonesian Enterprise AI company specializing in Enterprise AI, RAG, Intelligent Search, and AI Automation. Article written by andre.