Questions tagged [encoding]

Encoding is changing a sequence of characters to symbols.

Encoding is changing a sequence of characters to symbols. Do not confuse with encryption.

150 questions
2
votes
1 answer

Setting the output encoding to text/html for a given file ending in Apache

I would like to upload some HTML pages with the ending .aspx to our apache root server and I want apache to treat and deliver them just as regular .html files. I know this is unusual, but it is only for a preliminary site for SEO reasons until I get…
Sandra
  • 123
  • 3
1
vote
0 answers

Is there any IETF / RFC standard defined for hosts file encoding?

While going through the accepted answer for hosts file ignored, how to troubleshoot?, I observed the statement "The hosts file should encoded in ANSI or UTF-8 without BOM". As I personally faced issues using an application due to hosts file in…
ramtech
  • 133
  • 4
1
vote
2 answers

HAProxy encode url for querystring

I have a system that needs to preserve the original referer over multiple redirects. To achieve this I'm trying to write the referer to the URL query string. I already got that working (somewhat). http-request set-query…
elmo
  • 55
  • 2
  • 8
1
vote
3 answers

How do I configure UTF-8 Content-Type header in Apache?

My website has pages and other content with UTF-8 encoding. For HTML, setting the encoding in a meta tag is no problem. However, I also have raw text files with UTF-8 encoding that aren't displayed correctly, such as ⨯ appearing as ×. I've…
Brent
  • 150
  • 1
  • 1
  • 9
1
vote
0 answers

Is there any way to tell the Puppet augeas resource which encoding to use?

i am new to augeas, and i am getting plenty of errors like: Could not evaluate: invalid byte sequence in UTF-8 in special i expect augeas to honor the encoding declaration in a XML-file but in the source…
mmoossen
  • 111
  • 3
1
vote
1 answer

Apache serve files with different URL encode

I got an error when i try to load a file image on my staging server, it seems is about encoding. When i access to the following URL: http://example.com/sites/default/files/2016-12/Articulaci%C3%B3n.jpg Apache throws a 404 (Not found) error, the…
1
vote
1 answer

FreeBSD 10.3 + zfs - character set incorrectly displayed in terminal

I have a server with a samba share on zfs filesystem. Filenames are in hungarian. When I login with ssh, then the file names are diplayed incorrectly in the terminal: If I do an auto complete on the filename, then it is clear that the filename…
nagylzs
  • 759
  • 3
  • 12
  • 23
1
vote
0 answers

MySQL's console client does not display non-latin symbols

I have installed mysql 5.6 on debian 7.10 from official mysql deb repository: deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.6 So i have these packages installed: # dpkg -l | grep mysql | awk '{print $2 " " $3}' | column -t libdbd-mysql-perl …
hraphrap
  • 237
  • 2
  • 16
1
vote
0 answers

Nginx decoding ampersand

We have canonical style URLs that we use for FB sharing. Facebook can scrape these pages for the info it needs to... these pages generate a specialized image to be shared by the user. A user can specify a string to be displayed on this…
1
vote
0 answers

How to pass raw Ansible params to Windows cmd without any encoding/decoding?

I'm trying to set permissions to some windows directory like this # ansible example.com -m raw -a 'icacls D:\somedir\ /grant "! ЗАО. Руководство":F' -vvvvv and get windows error about invalid parameters No config file found; using defaults Loaded…
Vladimir Martsul
  • 132
  • 1
  • 2
  • 8
1
vote
1 answer

gunicorn behave differently when run from terminal and by service

I am using nginx+gunicorn+django for my website. The following is my gunicorn.conf file: description "Gunicorn daemon for Django project" start on (local-filesystems and net-device-up IFACE=eth0) stop on runlevel [!12345] # If the process quits…
moonkey
  • 113
  • 4
1
vote
0 answers

Hyphen character encoded as “%2D” with IIS6

A customer has set up a website on a server IIS6. In older versions of Firefox, they have a problem with a URL containing a hyphen character. When they request http://www.example.es/mas-info they get a 301 redirect…
kaiser1871
  • 11
  • 2
1
vote
1 answer

xdg-open uses wrong character encoding on LTSP

I'm trying to open files in a local application on an LTSP system. But if the path name contains accented characters, like é, it can not be opened because the URI seems to be encoded wrong. The problems seems to be located in the way gvfs-open sends…
Tom B.
  • 111
  • 4
1
vote
1 answer

How do you prevent mod_rewrite from decoding a string in the path?

I'm trying to create a restful API using mod_rewrite. I have the rule: RewriteRule v2/(.*)$ v1/index.php?request=$1 [QSA,NC,L] However the path could contain base64 encoded strings (i.e. can have + or /) and they are being decoded before it gets…
Mike
  • 689
  • 3
  • 9
  • 27
1
vote
0 answers

Non-ASCII filenames are being broken in Jira on Debian

I have an old Jira 3.12 installed on Linux (Debian, 6.0.4). The encoding in OS is setup to UTF-8. My problem: if somebody adds an attachment with non-ASCII symbols in its filename, it is created correctly - correct record in the database and a…