MSXML load - not able to read chinese characters in path
-
Hello Everybody, I am trying to read XML file using MSXML parser. Till now, all paths are in English characters and inside file also all are in English only. Now, we are trying to move with Chinese characters also. So, inside file wherever needed, we are able to manage conversion and load the file using MSXML parser. Now, the problem is, if the path of the xml file consists of Chinese characters, then IXMLDOMDocumentPtr->load(path) is not working. Is there anyway to load the file ? PS. we can able to write a new parser, but need to change a lot in our existing application. Thanks in advance. Regards, Gopinath.
-
Hello Everybody, I am trying to read XML file using MSXML parser. Till now, all paths are in English characters and inside file also all are in English only. Now, we are trying to move with Chinese characters also. So, inside file wherever needed, we are able to manage conversion and load the file using MSXML parser. Now, the problem is, if the path of the xml file consists of Chinese characters, then IXMLDOMDocumentPtr->load(path) is not working. Is there anyway to load the file ? PS. we can able to write a new parser, but need to change a lot in our existing application. Thanks in advance. Regards, Gopinath.
-
Hello Richard, MSXML::IXMLDOMDocumentPtr->load function, when I tried to load a file in which the path or file name contains Chinese characters, its not loading. Means, it fails to load the file into the document pointer and return false. Regards, Gopinath.
-
Hello Richard, MSXML::IXMLDOMDocumentPtr->load function, when I tried to load a file in which the path or file name contains Chinese characters, its not loading. Means, it fails to load the file into the document pointer and return false. Regards, Gopinath.
-
Then you need to use your debugger to find out why that load is failing. Are you using proper Unicode file paths? See Naming Files, Paths, and Namespaces (Windows)[^].
-
Hello Everybody, I am trying to read XML file using MSXML parser. Till now, all paths are in English characters and inside file also all are in English only. Now, we are trying to move with Chinese characters also. So, inside file wherever needed, we are able to manage conversion and load the file using MSXML parser. Now, the problem is, if the path of the xml file consists of Chinese characters, then IXMLDOMDocumentPtr->load(path) is not working. Is there anyway to load the file ? PS. we can able to write a new parser, but need to change a lot in our existing application. Thanks in advance. Regards, Gopinath.
Do you need to canonicalize the path?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Hello Everybody, I am trying to read XML file using MSXML parser. Till now, all paths are in English characters and inside file also all are in English only. Now, we are trying to move with Chinese characters also. So, inside file wherever needed, we are able to manage conversion and load the file using MSXML parser. Now, the problem is, if the path of the xml file consists of Chinese characters, then IXMLDOMDocumentPtr->load(path) is not working. Is there anyway to load the file ? PS. we can able to write a new parser, but need to change a lot in our existing application. Thanks in advance. Regards, Gopinath.
Perhaps, there is some problem with encoding?
-
Hello Everybody, I am trying to read XML file using MSXML parser. Till now, all paths are in English characters and inside file also all are in English only. Now, we are trying to move with Chinese characters also. So, inside file wherever needed, we are able to manage conversion and load the file using MSXML parser. Now, the problem is, if the path of the xml file consists of Chinese characters, then IXMLDOMDocumentPtr->load(path) is not working. Is there anyway to load the file ? PS. we can able to write a new parser, but need to change a lot in our existing application. Thanks in advance. Regards, Gopinath.
Gopi Nath wrote:
Now, the problem is, if the path of the xml file consists of Chinese characters, then IXMLDOMDocumentPtr->load(path) is not working.
You left out so much relevant information... 1.) Could you give an example path containing Chinese characters that fails to load? 2.) What MSXML DLL version? 3.) What operating system version? Best Wishes, -David Delaune
-
Hello Everybody, I am trying to read XML file using MSXML parser. Till now, all paths are in English characters and inside file also all are in English only. Now, we are trying to move with Chinese characters also. So, inside file wherever needed, we are able to manage conversion and load the file using MSXML parser. Now, the problem is, if the path of the xml file consists of Chinese characters, then IXMLDOMDocumentPtr->load(path) is not working. Is there anyway to load the file ? PS. we can able to write a new parser, but need to change a lot in our existing application. Thanks in advance. Regards, Gopinath.