1 jeffcapeshop May 14, 2006 01:40
3 stk May 16, 2006 02:26
What is the charset for your pages?
We use the ISO-8859-1 char set and [url=http://www.blooberry.com/indexdot/html/tagpages/text.htm]these pages[/url] as a reference.
To add a Pound symbol to a post, which is not found on my keyboard, I would use a numbered "entity" value in our post.
For example ... the pound symbol could be written with
1) Numbered entity value - £ or £ or
2) Named entity value - £ or £
(Note: Numbered entity values are more universally displayed than named entity values, so they're better to use. As evidenced by a preview of this post, in which the £ is NOT displayed properly).
Try using an entity value and see how it works out?
Hope this helps.
PS - Our language is English and I'm not sure if using a different language attribute for a web-page would cause problems using entity values, but that *might* be another place to look.
4 jeffcapeshop May 16, 2006 03:17
hi,
the charset on my skin is set to
<?php locale_charset() ?>
though changing it manually to ISO-8859-1 doesn't make a difference
I have been using £ as an alternative, and it works fine, but i plan to pass this blog on to someone less technically minded in the future and the easier i can make it the better..
the problem doesn't seem to be the display of £ (for example), but rather the transformation from £ to £ or &#163; within the "write new post" section - i assumed that was done by _formatting.php as there is what looks like relevant code.. but using an un-edited version of _formatting.php did not fix the problem, so i'm not sure..
if it helps at all, £ is "transformed" into & # 194; & # 163; (spaces added), so i don't know why there is that extra character at all..
it may be easier just to re-install and start again (i've not done that much) but i thought i'd wait a bit longer in case anyone has any good ideas!
thanks,
jeff
5 stk May 16, 2006 04:35
Jeff,
Okay, let's see if I can understand the issue better.
1) What version of b2evo are you using?
2) Do you have a link that shows an example?
3) The charset of your sking would be better determined by doing a "view source" of the final HTML (as the local_charset() would then be populated and fully formed).
ours shows
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
3a) Is there a lang attribute? if so what is it? ours shows
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4) I'm still trying to understand exactly where the x-formation is occurring. You type "£" into the write pane and save post? You go and view your post on the web and it shows the extra character? Does it show still when you edit your post, or is the £ still there?
AFAIK, _formatting.php doesn't convert any values, but I've never had such a problem and never investigated.
5) What is the locale of the blog? (Blog tab -> Gen Params -> Main Locale)
Sorry for all the questions, but without having direct access, it's kinda hard to know what/when and ultimately, why.
Also, maybe you can post the part of the _formatting.php file that you think is altering the input?
I'm sure we can get this sorted.
EDIT ... I can add £ to a post and it just shows as £, so I can't seem to replicate it.
6 yabba May 16, 2006 09:41
This is definately something to do with charsets, I have absolutely no problem posting £ signs (without character entities).
Have you changed the local for your db, blog, user or posts recently?
¥
7 jeffcapeshop May 16, 2006 11:34
hi, thanks for all your help with this!
i'm using 1.6-pheonix-alpha
charset from source code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
i have no lang attribute..
i have set up a user on the blog
http://www.bordersfiddlegroup.org.uk/admin
user:b2evoforum
pass:b2evoforum
you should only be able to post to a "non-visible" blog, http://bordersfiddlegroup.org.uk/index.php?blog=6 (i hope!)
If i enter "£" into the write-pane is comes up with the extra character - as a workaround i have been typing "£" into the write-pane, which comes up as "£" - clicking edit shows "£" still.
Main Locale = English(EU)
I have tried on the demo-blog on this (b2evolution.net) site and entering £ in the write pane works as expected, no extra characters.
¥: not knowingly - i will check the db with my host..
thanks,
jeff
8 yabba May 16, 2006 11:43
lol, it wasn't to keen on my "¥åßßå" either :p
I have the same charset on my blog (lang = en-uk) and, as I said, it displays with no problem. I can also switch to en-eu and still have no problems.
Try amending your skin _main.php so it looks like this :-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 <?php echo ($use_strict)?'Strict':'Transitional'; ?>//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-<?php echo ($use_strict)?'strict':'transitional'; ?>.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
¥
9 jeffcapeshop May 16, 2006 11:51
nope, doesn't seem to have helped..
it's strange that it always seems to add the same extra character.. Â EDIT:actually they ARE different, sorry
10 yabba May 16, 2006 11:51
yeah, I watched it fail :p
Wait and see what you host says first.
¥
11 jeffcapeshop May 18, 2006 18:06
ok, my db was set to set to latin1_swedish_ci., and hs now been changed to multi-lingual Unicode (no english-only option apparently)
- the problem is still there.. any further suggestions?
12 yabba May 18, 2006 18:12
You could try to narrow it down.
If you haven't done many hacks then you could download a fresh install and upload all the folders (except the install folder and conf/_config.php) and see if the problem still occurs.
If you have done hacks, then you could do a fresh install using a sub folder and a different table prefix ( evo_test_ )
¥
13 jeffcapeshop May 18, 2006 18:14
i have made my own custom skin, other than that i don't think i've done anything really..
will uploading all folders overwrite my stored blogs, or is that all done within the database?
14 yabba May 18, 2006 18:21
You might try changing skin first to see if it's a skin thing (which I don't think it is).
Your posts etc are safely stored away in the database, but I think I'd go for the sub folder/new install (on a different table prefix ) route and see what happens with that.
¥
15 jeffcapeshop May 18, 2006 18:54
ok! i made a subfolder and installed a new blog from fresh, and the problem exists in that one too.
so i suppose that does narrow it down to some kind of charset or server issue?
i'll try on another host just to make sure.
still can't find a solution to this.. is it possible to export the entries in my blog and re-install b2evo?