Character encoding PreviousNext
Data Distribution Service (DDS) Forum > DDS Technical Forum >
Message/Author
Next message John Hawkins  posted on Wednesday, February 27, 2008 - 01:10 pm
Hi Folks,

Is Character encoding encapsulated anywhere in the DDS or RTPS Spec? I can't see it so my question, I guess, is how is character encoding handled?

many thanks,
John.
Next message Niels Kortstee  posted on Monday, March 03, 2008 - 09:26 am
Hi John,

The application types for DDS are modeled in OMG IDL. OMG IDL defines a 'char' data type that is an 8-bit quantity, but it does not specify a characterset to be used.

In other words, an implementation is free to use any code set internally for encoding character data. This means the application itself is responsible for choosing a characterset.

Cheers, Niels
Next message John Hawkins  posted on Tuesday, March 04, 2008 - 10:57 am
Great - thankyou for that.

So, to be really clear - if an application is going across two different machines which use two different character sets then the application has to put in some property into the data such that each end of the application knows to convert the data - correct?

Would they ideally put this into the user data field - or is there somewhere else they could put it?

many thanks,
john.
Next message Niels Kortstee  posted on Tuesday, March 04, 2008 - 12:38 pm
Yes indeed, adding an additional
field to the data is probably the
best solution if no 'common' characterset
is available.

Cheers, Niels
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action: