KenLane
Advanced Member
USA
460 Posts |
Posted - 12/08/2023 : 09:11:01
This character is popping up on its own any time superscript code is used.
Â
Why?
====== Flight Instructor selling Flight Training Materials & Pilot Supplies http://www.AustinFlightCheck.com
|
dbdave
ECT Moderator
USA
10410 Posts |
Posted - 12/08/2023 : 11:25:33
Hi, are you copying and pasting this in from another source? Thanks, David
|
KenLane
Advanced Member
USA
460 Posts |
Posted - 12/08/2023 : 11:45:00
I pasted the character from the text. It's showing in the listing as well as the coded section.
====== Flight Instructor selling Flight Training Materials & Pilot Supplies http://www.AustinFlightCheck.com
|
dbdave
ECT Moderator
USA
10410 Posts |
Posted - 12/08/2023 : 14:08:11
Actually after a google search, it seems superscript will need it's own set of tags to get it to show https://www.w3schools.com/tags/tag_sup.aspGive that a try and see what you get. If you are pasting from an external document or website, I think that's going to be a problem too. Thanks, David
Edited by - dbdave on 12/08/2023 14:10:05
|
KenLane
Advanced Member
USA
460 Posts |
Posted - 12/08/2023 : 14:25:10
That's exactly the code I'm using. For example on this page, the product title in the body has these characters popping up on their own. These had been set for a couple years.
https://www.austinflightcheck.com/proddetail.php?prod=Dow_Corning%26reg%3B_Molykote_44_Medium_High_Temperature_Bearing_Grease_-_5.3_Oz
<h3 align="center"><strong>Molykote<sup>®</sup> 44 Medium High Temperature Bearing Grease by Dow Corning<sup>®</sup></strong></h3>
So, what's causing the odd characters to develop on their own?
====== Flight Instructor selling Flight Training Materials & Pilot Supplies http://www.AustinFlightCheck.com
|
dbdave
ECT Moderator
USA
10410 Posts |
Posted - 12/08/2023 : 14:48:38
Ok, this could be down to the characterset you are using on your website. Typically you want utf-8 - something like, <meta http-equiv="content-type" content="text/html; charset=utf-8" />
You should view source on your website pages to see if you have that set, then do the same on the admin pages. If they are not there, then there is a setting you can add to force the admin on to a specific character set.
David
|
KenLane
Advanced Member
USA
460 Posts |
Posted - 12/08/2023 : 14:55:48
It has...
<meta charset="UTF-8">
in the first line under the <head> tag.
That's in the product detail page.
====== Flight Instructor selling Flight Training Materials & Pilot Supplies http://www.AustinFlightCheck.com
Edited by - KenLane on 12/08/2023 14:56:14
|
quadrant
Ecommerce Template Guru
United Kingdom
1110 Posts Pre-sales questions only (More Details...)
|
Posted - 12/09/2023 : 01:18:02
Hi,
I seem to remember we had a similar problem a few years back and adding the following to includes.php fixed it: $adminencoding="utf-8";
You might need to edit and resave the product in your admin and this is assuming the text you are having issues with is coming from your product admin of course.
Regards, David
|
dbdave
ECT Moderator
USA
10410 Posts |
Posted - 12/09/2023 : 07:31:48
Hi Ken, this thing to do is check what you have in the admin next. If you don't see that same line in the admin, try the parameter David suggested. Thanks, David
|
KenLane
Advanced Member
USA
460 Posts |
Posted - 12/09/2023 : 09:01:35
If I don't see it where, exactly?
====== Flight Instructor selling Flight Training Materials & Pilot Supplies http://www.AustinFlightCheck.com
|
dbdave
ECT Moderator
USA
10410 Posts |
Posted - 12/09/2023 : 10:10:50
Hi Ken, on any of your admin pages, in your browser, right click and select "view source" and look for the pages encoding. See if it's "utf-8" If not, try adding $adminencoding="utf-8"; to your includes file, and check it again.
Thanks, David
|
KenLane
Advanced Member
USA
460 Posts |
Posted - 12/09/2023 : 10:33:26
Just to clarify... which should it be?
$adminencoding="utf-8"; <--- Your recommendation
or
$adminencoding='utf-8'; <-- What is currently in the includes file
====== Flight Instructor selling Flight Training Materials & Pilot Supplies http://www.AustinFlightCheck.com
|
1818charlie
ECT Moderator
United Kingdom
1194 Posts |
Posted - 12/09/2023 : 11:15:15
$adminencoding="utf-8"; is the correct one to use for the PHP include Also noted from the following link https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.aspCharacter sets Greater support is now given for “Wide” Character sets such as Japanese and Chinese. You can set the following 2 switches... $emailencoding="shift_jis"; $adminencoding="shift_jis"; ...changing “shift_jis” for the actual character encoding (as shown in the example at top of this message) used in your emails and admin section pages.
Edited by - 1818charlie on 12/09/2023 11:28:17
|
KenLane
Advanced Member
USA
460 Posts |
Posted - 12/09/2023 : 11:29:16
Is it just that one page or do I need to change other pages?
Will that remove the extra characters or do I need to manually do that?
====== Flight Instructor selling Flight Training Materials & Pilot Supplies http://www.AustinFlightCheck.com
|
dbdave
ECT Moderator
USA
10410 Posts |
Posted - 12/09/2023 : 19:11:34
Hi Ken, it sounds like your admin and front end were both already on utf-8 At this point, have you tried just typing in the offending text instead of pasting it in from another document?
Thanks, David
|
|
|