...

View Full Version : Chinese and CSS incompatibility in Firefox?



grooverevival
10-28-2008, 06:59 AM
Hi all,

I've been trying to fix this for ages and would be very grateful for help with it.

A website I built uses CSS styles to set the fonts for all the pages. Using Explorer, the pages all appear as they should. However, when viewed with Firefox, the pages that contain Chinese text do not display the styles properly--the text just comes out in plain black Times New Roman. The pages that don't contain any Chinese characters still come out as they should.

Is there some incompatibility here? Or have I defined my styles incorrectly?

The website I'm working on is:

http://www.bsot-bluesbash.info

& the stylesheet's here:

http://www.bsot-bluesbash.info/bluesbashstyles.css

I'd really appreciate any help you'd be able to offer with this problem, thanks. All the best,

Scott

abduraooft
10-28-2008, 08:35 AM
Fix the errors in your markup first, see http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bsot-bluesbash.info%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

First of all you need a valid DOCTYPE (http://www.alistapart.com/stories/doctype/)at the top of your page.

x54
10-28-2008, 11:20 AM
I'm not going to help much but I get similar Chinese language issues. I use my Chinese girlfriend's laptop and I get similar issues with my sites. The main problem I get is that on other people's computers it will ask them to download a Chinese language component in order to view the site. The site is in English so I don't want this. Anyone got any ideas on this?

I also get the problem that you discussed.

Cheers

x54

Samhain13
10-28-2008, 12:35 PM
The page seems to be working fine here (see screenshot below).
I used Firefox 3 in Ubuntu. The disappearance of the Chinese characters might be an indication that some browsers in Windows aren't using the internationalisation features of the OS? But that's just my guess.

grooverevival
10-28-2008, 07:39 PM
abduraooft, thanks for pointing out those errors... I'll see about correcting them.

Thanks others for answering, but I think I've miscommunicated the problem. Samhain13, it's not working on the screenshot you posted. The Chinese characters are appearing, yes, but that isn't the problem.

My problem is that the CSS styles don't apply to the pages that contain Chinese text. As you can see on the screenshot, the text is all in regular black Times New Roman, not purple verdana like it appears in Explorer. The pages without Chinese appear in purple in both Explorer and Firefox, but the pages containing Chinese text only appear in purple in Explorer. I'm wondering why the styles don't apply to the pages in Firefox when they happen to contain Chinese text. I hope that's clearer.

Any help or pointers with this would be much appreciated, thanks. Cheers, best,

Scott

Apostropartheid
10-28-2008, 10:52 PM
If I trigger standards mode (by adding <!doctype html>, Firefox renders correctly.
(And, to be honest, you should take this as a hint.)

Doctor_Varney
10-29-2008, 12:35 AM
Shouldn't that be: "The Blues Society of Taiwan"?

Samhain13
10-29-2008, 05:59 PM
Thanks others for answering, but I think I've miscommunicated the problem. Samhain13, it's not working on the screenshot you posted. The Chinese characters are appearing, yes, but that isn't the problem.

Ah! I've misunderstood you then. :)
Anyway. Yeah, why not try the DocType suggestion that others have posted?

oesxyl
10-30-2008, 11:01 AM
Ah! I've misunderstood you then. :)
Anyway. Yeah, why not try the DocType suggestion that others have posted?

validate css:
http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Fwww.bsot-bluesbash.info%2Fbluesbash%2520frameset.htm

but only after html is valid, because now is still invalid:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.bsot-bluesbash.info%2Fbluesbash%2520frameset.htm

regards

grooverevival
11-04-2008, 09:31 PM
Thanks so much for the help, all of you. I must admit I was a little embarrassed to look up doctype & see that it's the first element in any standards-compliant webpage... whoops! That's what I get for the trial-and-error approach to learning web design.

Anyway, I've fixed that issue in the frameset and currentfestival pages, but it still isn't working. I'll continue fixing the other things that were raising flags in the html validator (which is a very useful tool that I had no idea existed, by the way), and hopefully it will sort itself out eventually. I'll definitely let you know. It just may take a few days because I've got a lot of other things on my plate right now.

Again, thanks very much for helping out a total noob. Cheers, best,

Scott

oh, & PS, it's "on Taiwan" because it's an island... I'm sure DC (the prez) has a more eloquent explanation for the name, but that's the name.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum