You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2013/04/07 22:07:16 UTC
[jira] [Updated] (THRIFT-414) Support non-UTF-8 in Java and C#
[ https://issues.apache.org/jira/browse/THRIFT-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier updated THRIFT-414:
-------------------------------
Issue Type: Sub-task (was: New Feature)
Parent: THRIFT-1920
> Support non-UTF-8 in Java and C#
> --------------------------------
>
> Key: THRIFT-414
> URL: https://issues.apache.org/jira/browse/THRIFT-414
> Project: Thrift
> Issue Type: Sub-task
> Components: C# - Compiler, C# - Library, Cocoa - Compiler, Cocoa - Library, Java - Compiler, Java - Library
> Reporter: David Reiss
> Attachments: ASF.LICENSE.NOT.GRANTED--0001-THRIFT-414.-Non-UTF-8-string-support-for-Java.patch, ASF.LICENSE.NOT.GRANTED--v2-0001-THRIFT-414.-Non-UTF-8-string-support-for-Java.patch
>
>
> Java and C# Thrift assume that all strings should be UTF-8. A better approach would be:
> - Give the readString and writeString protocol methods an encoding parameter, probably defaulting to UTF-8 for compatibility and convenience.
> - Make generated struct readers and writers pass the argument to the protocol objects for each string.
> - Allow a type annotation to override the default UTF-8 encoding.
> - All other languages (except Python 3) should ignore the annotation, but it will serve as documentation for the application.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira