Hi!
I habe this code:
Reference XTextDocument xTextDocument (xWriterComponent,UNO_QUERY);
Reference XText xText = xTextDocument-getText();
How can i convert xTextDocument-getText() to char * ?
I used to convert it like this:
int nLenOfAnsiChar =
WideCharToMultiByte() indicates that you are working on Windows. At first you need to convert to
UTF16 (from UTF8), and then from UTF16 to the desired code page.
Have a look at
http://code.msdn.microsoft.com/C-UTF-8-Conversion-Helpers-22c0a664 .
jg
Hi,
On Tue, Sep 24, 2013 at 06:44:05PM +0300, K.Misha wrote:
Hi!
I habe this code:
Reference XTextDocument xTextDocument (xWriterComponent,UNO_QUERY);
Reference XText xText = xTextDocument-getText();
How can i convert xTextDocument-getText() to char * ?
First, the
WideCharToMultiByte() indicates that you are working on Windows. At first you
need to convert to UTF16 (from UTF8), and then from UTF16 to the desired code
page.
Have a look at
http://code.msdn.microsoft.com/C-UTF-8-Conversion-Helpers-22c0a664 .
jg