|
|
|
Wide StringsNormal strings contain characters with character codes between 0 and 255, so-called 8-bit characters. But Pike can also handle strings with characters with higher character codes. This is needed for some languages, such as Japanese. Such strings are called wide strings: "The character \x123456 is the same as \d1193046."This string contains two occurrences of the character with (decimal) character code 1193046. As you may remember, Pike will translate \x followed by a hexadecimal (that is, base 16) number in a string literal to the character with that character code. The same is true for \d followed by a decimal (that is, normal base 10) number, and for a single \ followed by an octal (base 8) number. Internally, Pike will handle wide strings differently from normal 8-bit strings, but as a Pike programmer, you will usually not need to worry about the difference. Just use the characters you need. There may however be some operations, for example certain methods in certain modules, that cannot handle wide strings but that work with 8-bit strings. This is seldom intentilnal, and should you stumble upon one, please report it to us in Bug Crunch, our bug tracking system at Roxen Internet Software, and we'll try to fix it as soon as time allows. Here are some functions that can be used to examine wide strings:
|
|||||||||||||