Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » modify the CDA encoding
modify the CDA encoding [message #49513] Sun, 14 December 2008 06:58 Go to next message
RobertHua is currently offline RobertHua
Messages: 58
Registered: July 2009
Member
The default CDA document's encoding is
<?xml version="1.0" encoding="ASCII"?>
I want to set the encoding to UTF-8,How do it?

Thanks!!!!!
Re: modify the CDA encoding [message #49604 is a reply to message #49513] Mon, 15 December 2008 18:37 Go to previous message
No real name is currently offline No real name
Messages: 292
Registered: July 2009
Senior Member
Hi Robert,

This is a property in EMF. My best guess is:

xResource.getDefaultSaveOptions().put(XMLResource.OPTION_DEC LARE_XML,
Boolean.TRUE);
xResource.getDefaultSaveOptions().put(XMLResource.OPTION_ENC ODING, "UTF-8");

beyond that, I'm not sure and you'll have to read EMF documentation to
on the XMLResource package.

additionally see:
https://iheprofiles.projects.openhealthtools.org/

The user forum can be found here:
https://iheprofiles.projects.openhealthtools.org/ds/viewForu mSummary.do?dsForumId=212

Unfortunately, due to spam, guest posting is disabled so please become a
member of the project.


regards,
- Sarah


RobertHua wrote:
> The default CDA document's encoding is <?xml version="1.0"
> encoding="ASCII"?>
> I want to set the encoding to UTF-8,How do it?
>
> Thanks!!!!!
>
Re: modify the CDA encoding [message #588089 is a reply to message #49513] Mon, 15 December 2008 18:37 Go to previous message
No real name is currently offline No real name
Messages: 292
Registered: July 2009
Senior Member
Hi Robert,

This is a property in EMF. My best guess is:

xResource.getDefaultSaveOptions().put(XMLResource.OPTION_DEC LARE_XML,
Boolean.TRUE);
xResource.getDefaultSaveOptions().put(XMLResource.OPTION_ENC ODING, "UTF-8");

beyond that, I'm not sure and you'll have to read EMF documentation to
on the XMLResource package.

additionally see:
https://iheprofiles.projects.openhealthtools.org/

The user forum can be found here:
https://iheprofiles.projects.openhealthtools.org/ds/viewForu mSummary.do?dsForumId=212

Unfortunately, due to spam, guest posting is disabled so please become a
member of the project.


regards,
- Sarah


RobertHua wrote:
> The default CDA document's encoding is <?xml version="1.0"
> encoding="ASCII"?>
> I want to set the encoding to UTF-8,How do it?
>
> Thanks!!!!!
>
Previous Topic:store CDA into database
Next Topic:test 11746 to a local freebxml (OMAR) repository
Goto Forum:
  


Current Time: Tue Sep 16 05:01:49 GMT 2014

Powered by FUDForum. Page generated in 0.01678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software