Happy Business Starts Here

Highlighted
Zuora Support

When previewing the hosted pages, text fields contains symbols for português, Deutsch and Spanish

In a specific scenario, when previewing the hosted pages, the text fields contains symbols that should not be showing, user had this problem with Português (pt), Deutsch (de) and Spanish (es). Please check below for the solution.





SigNowBlue.png

 


If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Support

Re: When previewing the hosted pages, text fields contains symbols for português, Deutsch and Spanis

In existing implementation, user MUST use ISO-8859-1 encoding for following locale, while all the other locales can use UTF-8 encoded file directly.

{code:java}
localeCharset.put(Locale.FRENCH.toString(), "ISO-8859-1");
localeCharset.put(Locale.FRANCE.toString(), "ISO-8859-1");
localeCharset.put(Locale.CANADA_FRENCH.toString(), "ISO-8859-1");
localeCharset.put(Locale.ITALY.toString(), "ISO-8859-1");
localeCharset.put(Locale.ITALIAN.toString(), "ISO-8859-1");
{code}

Also, as a workaround to solve the translation issue, you may convert current file into ascii encoding type then try upload to the tenant again.
Here is the JDK command to do the convert: 

native2ascii -encoding iso-8859-1 [input_file] [output_file]

$ file -I ./resource_bundle_template\ ACH*
./resource_bundle_template ACH - DE.txt: text/plain; charset=iso-8859-1
./resource_bundle_template ACH_ES.txt:   text/plain; charset=iso-8859-1
./resource_bundle_template ACH_PT.txt:   text/plain; charset=iso-8859-1

$ native2ascii -encoding iso-8859-1 "resource_bundle_template ACH - DE.txt" ACH-DE_converted.txt
$ native2ascii -encoding iso-8859-1 "resource_bundle_template ACH_ES.txt" ACH-ES_converted.txt
$ native2ascii -encoding iso-8859-1 "resource_bundle_template ACH_PT.txt" ACH-PT_converted.txt
 
$ file -I ./ACH-*
./ACH-DE_converted.txt: text/plain; charset=us-ascii
./ACH-ES_converted.txt: text/plain; charset=us-ascii
./ACH-PT_converted.txt: text/plain; charset=us-ascii

 





SigNowBlue.png

 


If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √