View Single Post
  #1 (permalink)  
Old 01-23-04, 12:23 AM
i-creations i-creations is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
iso-2022-jp to Shift_JIS with php

Hi there

Need some big help!!

I have a program running that uses IMAP to read an email off the server then display it on a web page.

What I want to do is rather than displaying it on a web page, to save it as a text file on server

I managed to do that but the character set is a big problem

the programme puts the main message of the email into a variable
&body

however this is not readable as it is decoded for iso-2022-jp
therefore, when &body is saved as a text file the message is unreadable

i need the &body in the Shift_JIS format
is there any way during the saving of the text file process to convert iso-20220jp into Shift_JIS then save on the server so its readable

thanks in advance for any help
yours
tok
japan
Reply With Quote