NOTE: Jira is for bug reports and feature requests.
If you are entering an issue to ask a question,
please use the QuickFIX/J support options. Thank you.

Issue Details (XML | Word | Printable)

Key: QFJ-38
Type: New Feature New Feature
Status: Open Open
Priority: Default Default
Assignee: Unassigned
Reporter: Lejiang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickFIX/J

FIX Message support double-byte charset.

Created: 21/Jul/06 01:30 PM   Updated: 06/Apr/10 05:13 AM
Component/s: Engine
Affects Version/s: 1.0.1
Fix Version/s: Future Releases

File Attachments: 1. Java Source File Field.java (4 kB)
2. Java Source File Message.java (24 kB)
3. Java Source File MessageUtils.java (5 kB)

Issue Links:
Duplicate
 


 Description  « Hide
We use double-byte charset in no english country.QFJ get the fix message length using String.length(),get checksum using String.charAt().But these String method not support double-byte charset,e.g. GBK.

In GBK encoding:
"青".charAt(0)=38738
"青".getBytes()[0] unsiged byte = 199
"青".getBytes()[1] unsiged byte = 244


We wish QFJ to support double-byte charset.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Steve Bate added a comment - 26/Jul/06 04:42 PM
Can you describe a little more how you are using multibyte charsets? Are you only placing the multibyte data in "Encoded*" FIX fields (e.g., EncodedText) or the entire FIX message? The patch makes it appear that you are encoding the entire message.

Lejiang added a comment - 27/Jul/06 03:53 AM
Yes,the mutil-bytes charset chars are in the body fields of message,not only in the "encoded*" FIX fields.

I'm working on the FIX Dialect(Subset) and its default charset is double-bytes charset--GBK.

Now the primary problem is it.

See more about this FIX Dialect,please refer to QF maillist:QFJ:The problems in definite a new protocol of FIX subset.

We have changed some codes of QFJ to adapt this FIX Dialect.If the QFJ can directly support this feature,will be perfect for us.