Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9195303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:35:59+00:00 2026-06-17T21:35:59+00:00

I added a username and password for a basic authentication on Apache, and I

  • 0

I added a username and password for a basic authentication on Apache, and I want to have Unicode AuthName strings to my users. My httpd.conf looks like this:

<Location "/">
    AuthType Basic
    AuthName "Some Unicode Here"
    AuthUserFile /somewhere/htpasswd
    Require valid-user
</Location>

But “Some Unicode Here” always appears to be garbage in my browser. How do I make it appear properly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:36:00+00:00Added an answer on June 17, 2026 at 9:36 pm

    You may not be able to make it work, lack of browser support is the main issue, see What character encoding should I use for a HTTP header?.
    The AuthName appears as the realm in the WWW-Authenticate header:

    WWW-Authenticate: Basic realm="Some Unicode Here"
    

    Some quick experimentation shows:

    • Apache does not encode a UTF-8 AuthName string in the config, it sends it as-is
    • Firefox, MSIE and Chrome all (correctly) interpret that UTF-8 byte sequence as ISO-8859-1 (and hence likely display it incorrectly)
    • none support RFC-2047 MIME encoding as stated by HTTP RFC-2616, the display it literally as =?utf-8?B?U29tZSBVbmljb2RlIEhlcmUK?=

    (I suggest mod_auth_tkt as cookie-based a replacement for basic auth if you have the option, it has a drop-in htpasswd style perl script, and sets REMOTE_USER, you just need to roll your own form.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want save the username and password when user login, and I added the
I have added username to a devise authentication setup, and for some reason, it's
I want to add basic authentication for a reverse proxy site of Apache running
I am working with c#. I have added username and password to web.config like
i have developed one login form (username,password and submit button) using a MySQL connection
say i have two collections in mongodb,one for users which contains users basic info,and
I have the following code designed to begin a session and store username/password data,
I added the Username and password as URL parameter the fallowing URL: private static
I added to my system-wide /etc/security/limits.conf the following two rows: * soft rtprio 55
I am in the process of moving from a username/password system to one that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.