UTF-8, ANSI Coding. |
Post Reply | Page 12> |
Author | |
JWL
Senior Member Joined: 15-August-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 08-September-2008 at 9:31am |
The .asp pages seem to be coded with ANSI, which causes (tm) and (r) signs to not display when the browser is using the more common a UTF-8 character mode.
I have tried converting the asp pages to UTF-8 using notepad, and the results are like 50/50. Now when the browser both IE7 and FF3 are in UTF-8 mode, they display the (tm) and (r) like 50% of the time, the other half it's the invalid sign in place of these symbols. How, can I convert these pages to UTF-8, so they function 100% when browser is set to UTF-8. |
|
Matt
Moderator Group Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
You can add this to the <head> section of your HTML:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
I ran into this exact problem on http://www.euphoriababy.com, but besides what JWL mentions, it also treats spaces, line breaks and such to be presented as little boxes.
The client has discovered that if she over-types spaces and line breaks in order to resolve these characters (using the built-in HTML editor), then goes back later and edits the product without touching the description, the little boxes appear again. Very frustrating. (And I do have the UTF-8 statement present in the header.) Edited by Greg Dinger - 08-September-2008 at 10:46am |
|
macleather
Newbie Joined: 23-June-2008 Location: Los Angeles Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I'm experiencing a similar problem. If I use ½ in order to get 1/2 all is fine until I edit the product again at which time I get an A with a circle above it instead of the 1/2 even though the actual 1/2 shows in the description before I save the changes. This happens with all of the & codes except "e; I also get the A with circle for spaces either typed or as Greg indicates. I do not have the UTF-8 statement in my header.
Alan |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
Alan, could you throw that UTF-8 statement into the header so we can determine if that resolves the issue or begins to reveal a wider pattern please?
|
|
macleather
Newbie Joined: 23-June-2008 Location: Los Angeles Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Greg, I put the UTF-8 statement into my header and it seems to have solved my problem. I edited a couple of items with the problems and they stuck. In other words, it held the values once input. Since I'm not a programmer and don't understand the UTF-8 etc, I copied it from Matt's example and placed in at the first line after the opening Head tag in header.asp
Alan |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
JWL
Senior Member Joined: 15-August-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I put that in the header, before I even created this thread, and it didn't work for me. Although, I was hoping it would. And Greg is right about the spaces, same here - they have a little box as well. Like I said... before I converted these .asp pages to UTF-8 - I always got the invalid symbol in place of (tm) (r) etc. But, now that I have converted like the configureprd.asp, viewprd.asp etc pages to UTF-8 - when the browser is set to UTF-8 in both IE7 and FF3, the (tm) (rm) 'spaces' etc display properly - but only like 50% of the time, the other half I still get the invalid symbol. Even, after putting that meta tag in the header file. It's weird... I wonder if I need to convert every .asp include that these pages pull in - to UTF-8 as well, like the header.asp, footer.asp etc. Edited by JWL - 09-September-2008 at 6:59am |
|
JWL
Senior Member Joined: 15-August-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I see that you have this in the adminheader.asp file:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> I don't understand why you encoded all the .asp pages in ISO-8859-1 or ANSI which is closely related. You should have used a unicode, shame on you. :P Anyway, I know how I could solve the problem - I've never had this problem before and I know why... we always use "®" and "™" for (tm) and (r) symbols but when we input those in the admin panel, when we save the product info, it converts them to the displayed symbols... if I changed the charset in the adminheader to UTF-8, would it keep the original code of these symbols instead of converting them? Edit: I've been told that I need to convert all the .asp file includes like header.asp, footer.asp etc to UTF-8 and that's why the characters don't always display properly even though the main pages are encoded in UTF-8. Any thoughts? Thanks. Edited by JWL - 09-September-2008 at 11:56am |
|
Matt
Moderator Group Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
You do not need to re-encode the files. There are stores using Western, Hebrew, Chinese, etc... They all rely on the correct meta data for the type of characters they are displaying.
The symbols you need can be created with ISO-8859. http://htmlhelp.com/reference/charset/iso160-191.html Using the original files add the following tag to your <head> section: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> If you were using the characters from the UTF-8 character set then your UTF-8 meta tag would have worked. So I suspect you just need ISO-8859. This works on our demo store. If you want to preserve special characters then type them directly into the text box, instead of into the HTML editor. We hope this helps. |
|
Post Reply | Page 12> |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |