in reply to Re: Unicode/Wide strings and XS
in thread Unicode/Wide strings and XS
Update:
Here's an example of what I'm doing:
Am I doing something wrong? The string seems to get clobbered, or it's in a format that Windows won't accept as a "wide string".// Nodename is SV* holding "examplenode" printf("Nodename=[%s]\n", SvPV_nolen(Nodename)); // output: "Nodename= +[examplenode]" sv_utf8_upgrade(Nodename); wprintf(L"Got [%s]\n", (wchar_t*)SvPVutf8_nolen(Nodename)); // output: + "Nodename=[]"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unicode/Wide strings and XS ("unicode")
by tye (Sage) on Jan 09, 2004 at 16:41 UTC |