Skip to main content



      Home
Home » Archived » OHF » modify the CDA encoding
modify the CDA encoding [message #49513] Sun, 14 December 2008 01:58 Go to next message
Eclipse UserFriend
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 13:37 Go to previous message
Eclipse UserFriend
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 13:37 Go to previous message
Eclipse UserFriend
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: Sat May 10 03:26:43 EDT 2025

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

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

Back to the top