Battle.net Underground
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home    BNU    Help    Calendar    Login    Register  
*
News : This just in: SMF > phpBB September 09, 2010, 07:30:13 PM
+  Battle.net Underground
|-+  Development
| |-+  BNU-Bot
| | |-+  BNU-Bot Announcements (Moderator: Scott)
| | | |-+  Unicode support!
Advanced search
  0 Members and 1 Guest are viewing this topic. « previous next »
Pages 1
Author
Topic: Unicode support!  (Read 349 times)
Scott
ForumNazi

Master Camel (36)

THE TURKISH RICK JAMES
******

Karma: +6/-6
Age: 24
Location: Boston
Posts: 1135

BNU-Camel since December 2002


« on: June 26, 2008, 08:49:33 PM »

Starting with r1570, I'll be officially offering support for unicode! No, I don't mean I'll be adding different languages to the bot, but the bot will have the ability to send unicode strings to battle.net, in addition to its existing ability to read unicode strings coming in from battle.net.

There are major improvements to the way that the core package deals with the idea of unicode strings vs utf-8 encoded byte arrays. Simple unicode support has been in the nightly builds for a few days now, but in this revision (r1570) you'll be able to combine unicode characters with encryption.

Be aware that there are certain conditions that can cause the chat splitter to break a unicode character, and potentially fubar every string after the first one. To guarantee that you don't encounter this situation, your UTF-8 encoded text will have to be under 200 characters (which roughly equates to 100 unicode characters, with a worst-case of 66 unicode characters) in order to prevent the chat splitter from coming in to effect.
Logged

It's like saying, "Hello, my name is Camel and I don't know what I'm talking about."

 
Print  Pages 1
« previous next »
Jump to: