Hi all,
I’m Itami Sho, a contributor to Apache IoTDB. Currently, IoTDB supports only 
the UTF-8 charset. To enhance the system's flexibility and usability across 
different environments, I have implemented a feature that handles character set 
conversion when the user system's charset does not match IoTDB's default UTF-8.

The main functionality of this feature involves converting input character sets 
to UTF-8 and output character sets to the user-specified charset.

This update will primarily focus on modifying the JDBC interfaces. During the 
initialization of a connection, users can now specify the charset parameter in 
the URL, as demonstrated below:

try (Connection connection = 
DriverManager.getConnection("jdbc:iotdb://127.0.0.1:6667?charset=GB18030", 
"root", "root"); Statement statement = connection.createStatement()) { // Your 
code here }

In future work, I plan to extend support for this feature to other interfaces 
such as Session, REST API, MQTT, and more.

You can check my PR to get more code details: 
https://github.com/apache/iotdb/pull/12618

I look forward to your feedback and suggestions to further improve this 
feature. Your input will be invaluable in ensuring that this enhancement meets 
the needs of the community : )

Best regards,

Itami Sho

Reply via email to