On Fri, Sep 18, 2009 at 11:28 AM, Andrey <[email protected]> wrote:

> Try wprintf instead of printf and Utf16Value instead of Utf8Value;
> Currently you are sending utf8 string to printf, which expects text in
> your locale's encoding (shift-jis?), so there's no way this would work.
>
>
On a related note, i would recommend using cout/cerr/wcout/wcerr instead of
printf/fprintf. The reason is because it is possible for client-side code to
"intercept" the std streams by installing their own streambuf object into
it. For example, i do this in my ncurses/v8 plugin so that print() output
will go to a curses window of my choice.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to