QuickFIX/J

FIX Message support double-byte charset.

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Default Default
  • Resolution: Unresolved
  • Affects Version/s: 1.0.1
  • Fix Version/s: Future Releases
  • Component/s: Engine
  • Labels:
    None

Description

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.
  1. Field.java
    21/Jul/06 3:07 PM
    4 kB
    Lejiang
  2. Message.java
    21/Jul/06 3:08 PM
    24 kB
    Lejiang
  3. MessageUtils.java
    21/Jul/06 3:08 PM
    5 kB
    Lejiang

Issue Links

Activity

Hide
Steve Bate added a comment - 26/Jul/06 4: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.

Show
Steve Bate added a comment - 26/Jul/06 4: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.
Hide
Lejiang added a comment - 27/Jul/06 3: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.

Show
Lejiang added a comment - 27/Jul/06 3: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.

People

  • Assignee:
    Unassigned
    Reporter:
    Lejiang
Vote (0)
Watch (1)

Dates

  • Created:
    21/Jul/06 1:30 PM
    Updated:
    Thursday 5:03 PM