X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45c82204b9f59b583bae019f15c652ffd63f89ef..c437fde9f90fc7dfcac79053d214fc9146d7be21:/wxPython/src/_app.i diff --git a/wxPython/src/_app.i b/wxPython/src/_app.i index d90949ce13..5628f0242b 100644 --- a/wxPython/src/_app.i +++ b/wxPython/src/_app.i @@ -355,6 +355,27 @@ DocDeclStrName( + + +DocDeclAStr( + void , wxSetDefaultPyEncoding(const char* encoding), + "SetDefaultPyEncoding(string encoding)", + "Sets the encoding that wxPython will use when it needs to convert a +Python string or unicode object to or from a wxString. + +The default encoding is the value of ``locale.getdefaultlocale()[1]`` +but please be aware that the default encoding within the same locale +may be slightly different on different platforms. For example, please +see http://www.alanwood.net/demos/charsetdiffs.html for differences +between the common latin/roman encodings.", ""); + +DocDeclAStr( + const char* , wxGetDefaultPyEncoding(), + "GetDefaultPyEncoding() -> string", + "Gets the current encoding that wxPython will use when it needs to +convert a Python string or unicode object to or from a wxString.", ""); + + //--------------------------------------------------------------------------- // Include some extra wxApp related python code here