ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> C++-sig
C++-sig
[C++-sig] Re: Automatic PyUnicode to 'const char*'
by David Abrahams other posts by this author
Jul 31 2003 1:07PM messages near this date
[C++-sig] Re: Automatic PyUnicode to 'const char*' | Re: [C++-sig] Re: Automatic PyUnicode to 'const char*'
"Lijun Qin" <qinlj@[...].com>  writes:

>  Hi all,
> 
>  I'm using boost.python to wrap the WTL (Windows Template Libaray), using VC
>  7.1 and porting some old code previously use win32ui.pyd.
>  Basically it is easy to do, though gccxml failed to parse the ATL/WTL code
>  so I can not use Pyste.
>  But there is a trouble, does anybody know how to automaticly convert
>  PyUnicode to 'const char *'? Without this, I have to change lot of code
>  lines to explictly use str() function.

I'm not an expert in it, but I thought Unicode used 16- or 32- byte
wchar_t characters.  How would you convert it to char const*?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Lijun Qin
David Abrahams
David Abrahams
Stefan Seefeld

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved