--- Dave Mottorn wrote: > I'm trying to use txtConvertEncoding to convert > strToFind to Ascii. When I run it under the > Codewarrior debugger I get a debugger trap exception. > When I run it without the debugger I get unsupported > international call.
The docs say, "Currently, the focus of TxtConvertEncoding is to convert between Unicode-encoded text and the device�s character encoding. For this reason, TxtConvertEncoding can only handle conversions between the device�s encoding and one of UTF-8, UCS-2, UTF-16LE, or UTF-16BE. If you specify any other character encoding for either the source or the destination buffer, the error code txtErrUnknownEncoding is returned." So, I don't think you can use TxtConvertEncoding() to convert to ASCII. > Does anyone know how I can convert strToFind to ASCII. The sysAppLaunchCmdFind parameter block contains Char strAsTyped[maxFindStrLen+1]; in addition to Char strToFind[maxFindStrLen+1]; Can't you just use StrAsTyped ? __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
