10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
7th July 2011 (10 months ago)
#
hiya,
That's a good point, Mustafa, and not something I would have immediately thought of. I think that's a good initial test Ovidiu. See what happens if both are set to the same thing.
I also thought it is a brilliant idea but then I realized: I am talking about the slug here!
If you click the two links above, both titles are being displayed as they should so its not the font but one of the slugs is omitting the special characters.
I really don't think the theme has anything to do with it. the slug or permalink gets created when a post is saved and has nothing to do with the theme that only affects how it is displayed.
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
8th July 2011 (10 months ago)
#
Hiya,
Oddly, I don't see any special characters in either of those slugs, but I do on this one: http://anne.zice.ro/bits-n-bites/de-la-fotbal-la-istorie%E2%80%A6-%C8%99i-retur/ (which obviously get's all jumbled when I try to copy/paste here).
By default, when the default post slug is created, all letters will be converted to lowercase, spaces will be exchanged with dashes, and any special characters will be removed. The fact that this isn't happening is odd to me. Are you using WPML? It's possible that could have an impact on the URLs.
the first issue I was trying to point out is that sometimes, instead of a special character, i.e. Î?? I would see Isa instead - the non-special character version... but sometimes the special character would completely be dropped, thus making hte slug unreadable...
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
11th July 2011 (10 months ago)
#
Hiya Ovidiu,
Yeah, I'm stumped. I'm assuming if you go into the wp_posts table and check the URL also contains special characters there. Wonder if it could be a specific encoding issue in the db?
Otherwise, no clue :(
Did any of these sites get migrated from another install?
none was imported, they all started on this install.
the tables are encoded with utf8_general_ci and I checked their contents, some post titles are saved with special characters, some with special characters as HTMl entities (encoded) so my guess is that this depends on whether the user actually types in a special character or copies its &HTML code by copy/pasting a word i.e. from another web site...
I'll just leave this for now, its not life threatening but I thought I we could figure it out somehow..
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
12th July 2011 (10 months ago)
#
Hiya,
No worries. It's just odd though. Like I said above, WordPress is meant to strip out special characters from the permalink (though can leave them in the title) if they are in the slug as well I'd think the author would have to had done it on purpose.
But as it's not life threatening I suppose I'll let it go as well ;)
Responses (10)
Lifetime Member — 7th July 2011 (10 months ago) #
Hi Ovidiu,
I think the problem stems from the type of font used by the theme.
Some font types don't support all the characters.
You can try to change theme's font type.
Good luck.
Sales & Support Lead — 7th July 2011 (10 months ago) #
hiya,
That's a good point, Mustafa, and not something I would have immediately thought of. I think that's a good initial test Ovidiu. See what happens if both are set to the same thing.
Thanks!
Member — 8th July 2011 (10 months ago) #
I also thought it is a brilliant idea but then I realized: I am talking about the slug here!
If you click the two links above, both titles are being displayed as they should so its not the font but one of the slugs is omitting the special characters.
So its not theme related.
Lifetime Member — 8th July 2011 (10 months ago) #
interesting,
Maybe you can change theme's encode settings.
Open theme's files and Convert to utf8 without Bom
Member — 8th July 2011 (10 months ago) #
I really don't think the theme has anything to do with it. the slug or permalink gets created when a post is saved and has nothing to do with the theme that only affects how it is displayed.
Sales & Support Lead — 8th July 2011 (10 months ago) #
Hiya,
Oddly, I don't see any special characters in either of those slugs, but I do on this one:
http://anne.zice.ro/bits-n-bites/de-la-fotbal-la-istorie%E2%80%A6-%C8%99i-retur/ (which obviously get's all jumbled when I try to copy/paste here).
By default, when the default post slug is created, all letters will be converted to lowercase, spaces will be exchanged with dashes, and any special characters will be removed. The fact that this isn't happening is odd to me. Are you using WPML? It's possible that could have an impact on the URLs.
Member — 11th July 2011 (10 months ago) #
nope not using wpml.
the first issue I was trying to point out is that sometimes, instead of a special character, i.e.
Î??I would seeIsainstead - the non-special character version... but sometimes the special character would completely be dropped, thus making hte slug unreadable...Now that you mentioned, I also found some URLs that totally have special characters in them like:
http://anne.zice.ro/limba-asta/ingli%C8%99-pliz-%E2%80%93-ep-1/well, I guess this is one of those threads we'll drop and forget about since I have no idea what to check for :-(
Sales & Support Lead — 11th July 2011 (10 months ago) #
Hiya Ovidiu,
Yeah, I'm stumped. I'm assuming if you go into the wp_posts table and check the URL also contains special characters there. Wonder if it could be a specific encoding issue in the db?
Otherwise, no clue :(
Did any of these sites get migrated from another install?
Member — 12th July 2011 (10 months ago) #
none was imported, they all started on this install.
the tables are encoded with utf8_general_ci and I checked their contents, some post titles are saved with special characters, some with special characters as HTMl entities (encoded) so my guess is that this depends on whether the user actually types in a special character or copies its &HTML code by copy/pasting a word i.e. from another web site...
I'll just leave this for now, its not life threatening but I thought I we could figure it out somehow..
thanks for chiming in though..
Sales & Support Lead — 12th July 2011 (10 months ago) #
Hiya,
No worries. It's just odd though. Like I said above, WordPress is meant to strip out special characters from the permalink (though can leave them in the title) if they are in the slug as well I'd think the author would have to had done it on purpose.
But as it's not life threatening I suppose I'll let it go as well ;)
Become a member