hi,
I am unable to save file using function xmlSaveFormatFileEnc using libxml2 library on mac operating system in that path contain special international character.
I am working on some cross platform application and try to save a project file that contain path as :
/home/yogesh/Electrónica/newproj.proj file.
xmlSaveFormatFileEnc Function works fine with window and mac os but unable to run on mac operating system and return -1.
================================
xmlSaveFormatFileEnc( ( const char * )sProjFile.char_str(), pXML, "ASCII", 1 );
xmlFreeDoc( pXML );
=====================================
Unable to understand why it is happening while it is working fine on mac also if i take simple path without special character like /home/yogesh/test/newproj.proj
I thing this is encoding issue with Mac machine but not sure.
Mac Os version : 10.6
Yogesh
I am unable to save file using function xmlSaveFormatFileEnc using libxml2 library on mac operating system in that path contain special international character.
I am working on some cross platform application and try to save a project file that contain path as :
/home/yogesh/Electrónica/newproj.proj file.
xmlSaveFormatFileEnc Function works fine with window and mac os but unable to run on mac operating system and return -1.
================================
xmlSaveFormatFileEnc( ( const char * )sProjFile.char_str(), pXML, "ASCII", 1 );
xmlFreeDoc( pXML );
=====================================
Unable to understand why it is happening while it is working fine on mac also if i take simple path without special character like /home/yogesh/test/newproj.proj
I thing this is encoding issue with Mac machine but not sure.
Mac Os version : 10.6
Yogesh