RE: Using '#' in filename in JScript causes error

From: Wei-Dong XU [MSFT] (v-wdxu_at_online.microsoft.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 09:38:06 GMT

Hi Charles,

The 'load' method takes a URI and URI's need to be escaped if they contain special characters.
This works:
  xmlDoc.load("SomeFile%23.xml");

(% = 0x23 in ASCII)

Please feel free to let me know if you have any further questions.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • WSE816 error
    ... We have diagnosed the problem to be that the Cisco load balancer that we are ... When a Web service is hosted in a Web farm that uses one URI for the load ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Special Characters (Unicode, Ascii) in Python and MySQL
    ... Special characters and punctuation all seem not to be stored and ... perhaps the encoding of the database itself should be different? ... 'ascii' codec can't decode byte 0xe2 in position ... and pasted from Microsoft Word. ...
    (comp.lang.python)
  • Re: +n- Flaw in IE
    ... Save the following file to your hard drive in ASCII: ... Load the Web Page ... Un-Check Auto-Select ... IE will now auto-detect as utf-7, reload the page and fail very ...
    (comp.lang.javascript)
  • Re: How to conditionally use a specified module
    ... >> executes at compile time. ... d> Hi Uri, ... require can load any module just like use. ...
    (perl.beginners)
  • Re: Dummy regex question
    ... > JayEs wrote: ... >> (the latter due to special characters not avail in ASCII) ... >> How do I split these strings into 2, separating the currency code and the ...
    (comp.lang.perl.misc)

Quantcast