logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Adding characters
Author
Bobscrachy



Joined: 13 Feb 2006
Posts: 39
Location: Texas

PostPosted: Sun 13 May '07 23:01    Post subject: Adding characters Reply with quote

What do I need to do to add special characters to apache?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 14 May '07 9:02    Post subject: Reply with quote

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

PostPosted: Mon 14 May '07 21:46    Post subject: Reply with quote

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

PostPosted: Sat 19 May '07 23:09    Post subject: Reply with quote

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

PostPosted: Sun 20 May '07 15:36    Post subject: Reply with quote

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

PostPosted: Sun 20 May '07 21:40    Post subject: Reply with quote

That looks simple enough, thank you.
Back to top
Bobscrachy



Joined: 13 Feb 2006
Posts: 39
Location: Texas

PostPosted: Thu 24 May '07 0:06    Post subject: Reply with quote

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


Reply to topic   Topic: Adding characters View previous topic :: View next topic
Post new topic   Forum Index -> Apache