gawain Posted October 19, 2007 Share Posted October 19, 2007 Hi everybody.I'm trying to undesrand how to use correctly the following metatag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />In this case if, for instance, I'm to insert these characters " " which code should I use?Decimal NCRS: #34 #10 (ampersand and final semicolon left out)Hexadecimal NCRs: #x22 #xA (ampersand and final semicolon left out)UTF-8 code units 22 0A (which by the way don't know how to insert)? Thanks for any help. Link to comment Share on other sites More sharing options...
jlhaslip Posted October 20, 2007 Share Posted October 20, 2007 Write a page having that character set and display the various combinations. Then come back and explain the results.That way we all learn something. Link to comment Share on other sites More sharing options...
gawain Posted November 27, 2007 Author Share Posted November 27, 2007 Sorry for replying so late. I tried to cope with the problem Write a page having that character set and display the various combinations. Then come back and explain the results.That way we all learn something.As far as I understand with the following charset <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> both decimal and exadecimal NCRs can be written, even if decimal ones are to be preferred.I don't have to write UTF-8 code units because I'm using the above-mentioned charset.The same decimal and exadecimal NCRs can be written with an ISO charset.The result? I can switch the browser encoding options and get the same page.One final point: the code should be written using a UTF-8 format without BOM in order to have a wider accessibilityMaybe someone is interested in some tests: they can be seen hereTest_N.1Test_N.2Test_N.3I haven't managed yet to be able to write a php page with decimal characters encoded with UTF-8.Hope it helps, but I hope someone may have some tips.Is there any editor which turns diacritical signs into decimal NCRs, for instance?Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.