From ab86ce5ab86fbfc6e614ceffe1fdb1d7d0c8ff23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 4 May 2008 21:03:33 +0000 Subject: [PATCH] clarified From/To8BitData's purpose git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/wxstring.tex | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/latex/wx/wxstring.tex b/docs/latex/wx/wxstring.tex index d58e2d030c..3f1b58e98f 100644 --- a/docs/latex/wx/wxstring.tex +++ b/docs/latex/wx/wxstring.tex @@ -759,7 +759,10 @@ Converts given buffer of binary data from 8-bit string to wxString. In Unicode build, the string is interpreted as being in ISO-8859-1 encoding. The version without \arg{len} parameter takes NUL-terminated data. -This is a convenience method useful when storing binary data in wxString. +This is a convenience method useful when storing binary data in +wxString. It should be used {\it only} for that purpose and only in +conjunction with \helpref{To8BitData}{wxstringto8bitdata}. +Use mb\_str() for conversion of character data to known encoding. \newsince{2.8.4} @@ -1164,7 +1167,9 @@ Converts the string to an 8-bit string (ANSI builds only). Converts the string to an 8-bit string in ISO-8859-1 encoding in the form of a wxCharBuffer (Unicode builds only). -This is a convenience method useful when storing binary data in wxString. +This is a convenience method useful when storing binary data in +wxString. It should be used {\it only} for this purpose. It is only valid +to call this method on strings created using \helpref{From8BitData}{wxstringfrom8bitdata}. \newsince{2.8.4}