- Edwin - <mailto:[EMAIL PROTECTED]> on Tuesday, September 16, 2003 5:53 PM said:
This japanese page thing was a project I started at home so now that I'm at work I'll do my best to respond using my memory (good luck, me!). > Did you check if the Japanese characters are readable inside > html-kit? In other words, Japanese characters should appear as it is > inside your editor... No the japanese characters did not appear correctly. >> 7. Save the page > > Did you save it as euc-jp or shift_jis? No. I don't think there is that option in html-kit, but I think that this may be the key. If you (a person) can save the file as the proper type there's probably no reason to send the header() function, or for that matter there would probably be no REASON to send the header(). >> 8. open it in the web browser > > Before opening it in your browser, did you try opening again in your > editor just to see whether you saved it correctly? No. >> 9. cry because it doesn't work > > Hmm... If everything is properly declared inside your <head> tags, > your browser *should* automatically render the page correctly. > Anyway, if it doesn't work, check that the "character coding" in your > browser is properly selected. (If you're on Netscape or Mozilla, > choose "View" -> "Character coding" -> your_character_coding_here.) Yes this is how I would expect it to work but it ended up not working that way. But like I said I think it may be because of the type it saves the file as. >> A friend later figured out that the header() declaration at the top >> of the page was what made the difference. > > Did this one work for you? Yes, adding the header() made the page display correctly from my server. >> Do you know why it wouldn't work until that php code was added? > > Not really sure. But think about this. People can write HTML pages > without the help of php and the like and still have Japanese pages > correctly rendered by their browsers. In other words, I can write an > HTML page with Japanese characters in it, save it on my desktop (and > not on my web server), double click it, my browser starts and show me > the characters correctly--no php code necessary. That's how I expected it to work. > Btw, iirc, phpedit on Win2k worked for me. Just make sure that you > have Japanese fonts (and an IME) installed and you chose the correct > (default) font for phpedit. This works even if you have on English > version of Win2k (or XP). Oh cool. I have that already so I'll try it out. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php