Welcome to WebmasterWorld Guest from 18.205.109.82

Forum Moderators: open

Message Too Old, No Replies

accent on folders

as link directories with accent

     
3:40 pm on Nov 19, 2012 (gmt 0)

New User

5+ Year Member

joined:Nov 19, 2012
posts: 4
votes: 0


hello need to link folders with accents like to know if you have any way of doing this for example, my folder is created with php code for the user if it's own accent then have to recover with accents but usually will not recognize any way to do this ? or just creating them without accent?
5:55 pm on Nov 19, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15808
votes: 846


Uhm... er... are we talking about non-ASCII characters in URLs? I wouldn't risk it unless the whole thing is in a non-Roman script.
6:13 pm on Nov 19, 2012 (gmt 0)

New User

5+ Year Member

joined:Nov 19, 2012
posts: 4
votes: 0


But I needed for my script is one page pt-BR and associety on my database but I need create pastes is possible utilization?
1:52 am on Nov 20, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15808
votes: 846


The page can be any language you like. I thought you were asking about the URL. Or are you asking about the URL?

Do the directory names have to have accents? For example are they based on people's personal names?

If you simply need to convert your 's and 's into something else, your php script should be able to do that in a few lines. The tricky part is making something that converts in both directions. > nh > is no problem, but you can't simply change to am or an and then change "back" again.

Technically there is no rule against using non-ASCII characters in an URL or in any kind of link. It's just not always safe. I once had to change a bunch of fragment links that used yogh. They were safe on my HD and safe in my personal www space-- but all it takes is one server that doesn't use UTF-8 and it would have been a horrible mess.
5:51 am on Nov 20, 2012 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11822
votes: 236


Technically there is no rule against using non-ASCII characters in an URL or in any kind of link

while there is a proposal out for "internationalized resource identifiers", non-Latin-alphabet characters in a URL should be percent-encoded.

please see section 1.2.1:
http://www.ietf.org/rfc/rfc3986 [ietf.org]
A URI is a sequence of characters from a very limited set: the letters of the basic Latin alphabet, digits, and a few special characters.
10:30 am on Nov 20, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 7, 2003
posts:4783
votes: 0


URLs need to be UTF-8 encoded.
Take care: UTF-8 is not ISO-Latin-1 or any of its siblings or derivatives (like windows code pages). This is an encoding that has the potential for multibyte characters and requires proper care in handling.

Anything that falls outside the normal US ascii range should be %encoded (note: if you have UTF-8 sequences you have to %encode them). Alpha (a-zA-Z), digits (0-9) hyphen (-), period (.), underscore (_), or tilde (~) should never be encoded (normalization rules).

If you do output it in html or xml: you need to additionally encode " ' < > and & with the html entities (&quot; &apos; &lt; &gt; and &amp; as well.

That said: make your life easy and don't go for URLs with accented characters as they get mutilated beyond recognition anyway.
11:43 am on Nov 20, 2012 (gmt 0)

New User

5+ Year Member

joined:Nov 19, 2012
posts: 4
votes: 0


Good was giving a lot of work I choose to modify my script with php, when I made a function that will record the data in the database is the geito that the user typed the folder but it removes the accents and whenever I need to use it in their own use more attention I thank you all.
2:24 pm on Nov 20, 2012 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11822
votes: 236


welcome to WebmasterWorld, maike!
3:05 pm on Nov 20, 2012 (gmt 0)

New User

5+ Year Member

joined:Nov 19, 2012
posts: 4
votes: 0


Tank you.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members