java - ISO encoding with Japanese Frame file -


i have japanese content being converted ms tool. problem third party tool isn't using utf-8 encoding , creating .xml garbage characters:

    <param name="name" value="&#195;&#137;a&#195;&#137;v&#195;&#137;&#195;&#164;&#195;&#137;p&#195;&#133;&#195;&#137;v&#195;&#137;&#195;&#161;&#195;&#137;&#195;&#172;&#195;&#135;&#8224;&#195;&#135;'&#195;&#135;&#195;&#139;&#195;&#135;&#195;&#152;&#195;&#133;&#501;&#195;&#135;&#195;&#039;&#195;&#135;&#195;&#039;]">     <param name="name" value="test file">     <param name="local" value="applications.htm#xau1044547"> 

i tried playing around encoding , produces:

    <param name="name" value="ÉaÉvÉäÉpÅ">     <param name="name" value="test">     <param name="local" value="applications.htm#xau1044547"> 

but utf-8 encoding (another tool) , correct output should be:

    <param name="name" value="アプリケーション">     <param name="name" value="small business アプリケーションの起動 ">     <param name="local" value="applications1.html#wp1044548"> 

is there java api can use decode , encode files have correct output. not sure tool using guessing "iso-8859-1".

thanks.

your problem need use two encodings correctly:

  • find out encoding "japanese content" uses
  • make sure tool correctly uses encoding read content
  • make sure tool uses utf-8 encode output file and correctly declares in header.

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -