1 Reply Latest reply on Mar 8, 2011 11:55 PM by SmugJustin

    Can I send an http header with a UTF-8 value using URLRequestHeader?


      I'm currently setting up a bunch of custom headers like so ...


      putHeaders.push( new URLRequestHeader("FileName", filename) );


      It works fine but when I use a file name like '9時3分更新.JPG' I get the following error:


      ArgumentError: Error #2096: The HTTP request header #時3 分更新.JPG cannot be set via ActionScript.
      at flash.net::URLStream/load()
      at flash.net::URLLoader/load()
      at com.custom::Uploader/imageLoaded()


      Is there some encoding or conversion I have to do to the string before putting it in the header value?