|
Re: Save special chars ? [message #420956 is a reply to message #420950] |
Thu, 17 July 2008 11:27 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------040204070809090107060000
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Petr,
Only XML 1.1 allows control characters, and even then, the null
character is no allowed. You could control that either of these two ways:
/**
* Specify the XML version to be used during save.
*/
String OPTION_XML_VERSION = "XML_VERSION";
/**
* Set the XML version for this resource
*/
void setXMLVersion(String version);
But you might be better off to define a special EDataType for the value
and do encoding and decoding yourself. The EDataType could just be a
wrapper for java.lang.String and you'd override
createMyDataTypeFromString and convertMyDataTypeToString in the
XyzFactoryImpl to encode and decode the special characters. You might
use URI.encodeFragment/decode for this purpose.
Petr Kalafatic wrote:
> Hi,
> I have problem to save model which contains special characters
> generated by hash function. //----
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.05434 seconds