The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
|||
|
|||
![]()
I haven't dealt with this before, but doing a little searching, I found this page: http://stackoverflow.com/questions/2...8-encoded-char
and adapting it a little, I found that if for example your message is saved in $message and looks like this: "\u043a\u0430\u0442\u0443\u0448\u043a\u0438", and you do something like this: Code:
function replace_unicode_escape_sequence($match) { return mb_convert_encoding(pack('H*', $match[1]), 'HTML-ENTITIES', 'UCS-2BE'); } $message = preg_replace_callback('/\\\\u([0-9a-f]{4})/i', 'replace_unicode_escape_sequence', $message); before sending $message to the dm object, then you will get a post with cyrillic chars. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|