Author |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Sun 13 May '07 23:01 Post subject: Adding characters |
|
|
What do I need to do to add special characters to apache? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 14 May '07 9:02 Post subject: |
|
|
Where do you want to add "special characters"? In httpd.conf or your webpages? |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Mon 14 May '07 21:46 Post subject: |
|
|
I would imagine probably the conf. I'm using the autoindex to display files and some of the descriptions for these files have special characters that apache doesn't display properly.
I'm thinking its a charset issue, but i wouldn't know how to create a custom charset or set apache to use it if i did. |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Sat 19 May '07 23:09 Post subject: |
|
|
Lets say i was wanting to change the autoindex output to french. How would I do it? |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Sun 20 May '07 15:36 Post subject: |
|
|
One way is to use the HTML character escape sequences, like é and Ç.
For example: Code: | AddDescription "Fichier de données" .dat |
A complete list of escapable characters is at Named character entities in HTML 4.0.
Note that these names are case-sensitive (Ç is uppercase Ç, ç is lowercase ç), and they should always be enclosed between & and ;.
-tom- |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Sun 20 May '07 21:40 Post subject: |
|
|
That looks simple enough, thank you. |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Thu 24 May '07 0:06 Post subject: |
|
|
I have good news. Here is a more broad solution to this question.
It required not only assigning the default charset but actually encoding the htaccess file in utf-8 too.
Took me awhile to figure that one out.
Thank you for your input.
here is the the difference.
http://bobscrachy.redirectme.net
This was a version of the descriptions it was spitting out before.
Quote: | AddIcon /icons/folder.gif htm
ErrorDocument 404 /icons/shithappens/404.php
ErrorDocument 401 /icons/shithappens/404.php
Adddescription +ACIApAC6AGAAsAC6AKQA+A-,+ALgAuA-,+APgApAC6ALAAYACwALoApAD4-,+ALgAuA-,+APgApAC6ALAAYACwALoApAD4-,+ALgAuA-,+APgApAC6ALAAYACwALoApAC6ALAAYACwALoApAD4-,+ALgAuA-,+APgApAC6ALAAYACwALoApAD4-,+ALgAuA-,+APgAIg- hostedbybrain.gif
AddDescription "Agonizing Memories" .. Directory
AddDescription "sekurit�, monitor et d�fense r�seau" reseau
AddDescription "prog docs sources c/c++ rezo perl sh" coding
AddDescription "cyphers stegano vpn hash/lib/algo" crypto
AddDescription "le maitre des �mes" esprit
AddDescription "conception des systemes d'exploitation" osdevl
AddDescription "saint-bernard des textes enneiges" search
AddDescription "unix guides admin seku kernel" sysadm
AddDescription "naissance intelligence cybern�tique" vxdevl |
|
|
Back to top |
|