Indexing CharSet encoding.

Discussion in 'Install/Configuration' started by julienv, Oct 3, 2013.

  1. julienv

    julienv New Member

    I have an issue with LiteSpeed, running version 4.2.4 Enterprise.

    We have a french customer that uploads files with french accents.
    With Apache 2.4, we use IndexOptions Charset=windows-1252 in .htaccess and it works perfectly while indexing.

    This feature does not work with LiteSpeed, is there any way I can fix this? It's really important for our customer.

  2. mistwang

    mistwang LiteSpeed Staff

    with 4.2.5, if "AddDefaultCharset windows-1252" is set in .htaccess, the index page will add that charset.

    If this is a dedicate setup for this customer, you can also update the default indexing script at /usr/local/lsws/share/autoindex/default.php to set "Content-type" header with charset. it will affect the whole server though. not for shared hosting.
  3. julienv

    julienv New Member

    Sadly it doesnt work, with apache we didnt even have to use charset in .htaccess, it just works out of the box.

    I tried both indexoptions and AddDefaultCharset with no luck, still shows strange characters instead of french accents
  4. mistwang

    mistwang LiteSpeed Staff

    Please do

    /usr/local/lsws/admin/misc/ -f -v 4.2.5

    then try AddDefaultCharset again.

Share This Page