Actions
Bug #6045
openMorpho not correctly handling Chinese characters
Start date:
08/05/2013
Due date:
% Done:
0%
Estimated time:
Bugzilla-Id:
Description
Hi Ben,
There is a Chinese display problem in Matacat 2.0.6 when the data package uploading from Morpho 1.10.0.
My colleague, Chen-Tsai Chiu, modified the XMLUtil.java(MORPHO_1_10_0/src/edu/ucsb/nceas/morpho/util/).
He add codes(red part) to the XMLUtil.jave as following.
boolean escape = false; if (!escape) { // do not do escape for true UTF-8 encoding //str.append(ch); str.append("&#"); str.append(Integer.toString(ch)); str.append(';'); } else { // escape the special characters // see http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5238 str.append("&#"); str.append(Integer.toString(ch)); str.append(';'); }
We can't make sure the way is correct but it works.
Does it happen in other language?
Thank you.
Meei-ru
Related issues
Actions