Jump to content

html pre ISO-2022-JP only works in IE


sqlnoob

Recommended Posts

hi

 

http://www.shugo.nl/shugo7/manual/kanji.php

 

I am trying to make the stylesheet work in all browsers. So far I notice that this page with a pre tag for the japanese kanji only works in Internet Explorer. I'm trying to make it work in Firefox and Chrome too.

 

I tried html 4 transitional and html 5, neither of which works. The only thing Firefox and Chrome loads is the pre tag, but not the stylesheet.

Link to comment
https://forums.phpfreaks.com/topic/281548-html-pre-iso-2022-jp-only-works-in-ie/
Share on other sites

Change the encoding to utf-8.

 

EDIT: If you don't want to change the encoding (I like UTF8), try to set a html base tag inside the head tag.

 

 (not tested):

<base href="http://www.shugo.nl">
<link rel="stylesheet" type="text/css" href="../look/guidestyle.css">

OK tried it with an internal stylesheet and that works allright. Apparently if you use an external stylesheet with a Japanese character set, that isn't supported in firefox and chrome. I don't know why that is so. Perhaps because the stylesheet is not iso, that causes problems for firefox and chrome but not for internet explorer.

 

Would love to hear a suggestion where it works with an external stylesheet.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.