hey like i said in the question i want use the plus sign(+) instead of dashes so the posts will be like that: some+post+test another question , when i use non-latin characters the wordpress break the permalink and preserve just 30 words !! how can i solve that?
A:
The + sign is a reserved character in URLs and will translate to a space .
From what you are saying, though, your underlying issue is that you want to use non-ASCII characters in URLs. That is not valid in the first place: You will have to percent encode the slug before inserting it. Most modern browsers will show the URL in its proper form anyway.
Here is an on-line tool for percent-encoding incoming data. For example, the UTF-8 input of
Crêpes
will translate to
Cr%C3%AApes
Background info: Unicode characters in URLs
Pekka
2010-10-06 12:25:50
hey pikka like im said in the last comment for sure there is a method to use it ; there is many websites use plus sign for Spaces .
Hamza
2010-10-06 12:28:41
@Hamza you can try adding spaces to the WP slug and seeing whether they get converted to `+`. Other than that, I know of no easy way of changing Wordpress so it accepts that character. It's easy to do if you control your own web pages and URLs, but Wordpress is a more complex thing
Pekka
2010-10-06 12:30:10
yes that's true , that's why im posted the question because i have tried but i didn't get a result ; about the non-latin characters , wordpress cut the slug and preserve just 30 lettre !!
Hamza
2010-10-06 12:31:35
@Hamza well, try percent encoding. Although I can imagine that the 30 letter limit is something built into Wordpress.
Pekka
2010-10-06 12:33:41
@Pekka no its something related to octets , because if i entry an english title(with 1000000000000 words) all works fine !
Hamza
2010-10-06 12:36:16
@Hamza yes, as I said, you can't use non-ASCII characters in URLs. You need to percent encode them.
Pekka
2010-10-06 12:38:49
and how the visitor will see them in the browser?
Hamza
2010-10-06 12:50:16
@Hamza read by answer and the background info I link to. It's all there.
Pekka
2010-10-06 12:50:54
i read it but where i have to post the function into wordpress because im not friendly with it!
Hamza
2010-10-06 13:02:47
@Hamza you can percent escape the slug in the on-line tool to link to. If you want to do it automatically in WP: That I don't know. I would ask another question for that
Pekka
2010-10-06 13:06:21
for sure i'll not oblige the client to do that everytime per day! and thanks
Hamza
2010-10-06 13:11:05