Questions tagged [encoding]
Encoding is changing a sequence of characters to symbols.
152
questions
19
votes
3
answers
40k
views
How to tell the language encoding of a filename on Linux?
I have a directory with ~10,000 image files from an external source.
Many of the filenames contain spaces and punctuation marks that are not DB friendly or Web friendly. I also want to append a SKU ...
12
votes
2
answers
30k
views
How do I set proper Headers for JSON in Apache?
I have an Apache server which is serving out static JSON files. The Content Type is correctly being represented in the header with an Content-Type: application/json header.
How do I add the correct ...
12
votes
3
answers
5k
views
Mercurial convert filename encoding
I have Mercurial repositories running on Apache with mod_wsgi. Repositories have all filenames encoded in windows-1251. This encoding is used for historically reasons: they were converted to mercurial ...
11
votes
2
answers
49k
views
Determine the default character encoding in a RedHat system
How do I determine the default character encoding in a RedHat system using the command line? I just want to know what encoding a Java app would use per default if none is specified
11
votes
1
answer
21k
views
Can PuTTY be configured to display the following UTF-8 characters?
I'd like to be able to render the characters as seen in this tweet:
I saved the tweet's JSON data and wrote a one-liner python script for testing.
python -c 'import json,urllib; print json.load(...
10
votes
5
answers
16k
views
Encoding to base32 from the shell
I'm looking to encode an input string to base32 encoding directly from the shell. I'm looking to do this in ubuntu, but I imagine flavor doesn't particularly matter here.
Are there any existing ...
10
votes
2
answers
33k
views
nginx $uri is url decoded
I am using nginx as reverse proxy and I have 2 rules like:
location ~ ^/indirect {
rewrite ^/indirect(.*) /foobar$1;
}
location ~ ^/foobar {
set $url http://example.com/something/index.php?var1=...
8
votes
2
answers
12k
views
How do I read a single file in a maildir?
On my Linux development system I use fakemail to write mails to a directory instead of sending them. The mail files contain the headers and the text of the mail as quoted-printable, text/plain in UTF-...
7
votes
5
answers
77k
views
How can I disable Transfer-Encoding: chunked in Apache with HTTP/1.1 responses
I have a mod_include (SSI) page that is generating erronous output during chunked encoding when requested by a HTTP/1.1 browser.
The page is output fine when requested by a HTTP/1.0 (because the ...
7
votes
2
answers
28k
views
Linux not interpreting UTF8 encoded characters
So, having the following file Adán-y-Eva-50x50.jpg when I try to access it, apache translates it to Ad\xc3\xa1n-y-Eva-50x50.jpg and won't find it, even though it exists.
This happens only for ...
7
votes
2
answers
2k
views
Base64 encoded MX records in TXT records
A lot of domains hosted by Namecheap contain strange DNS TXT records that appear to be base64 encoded, that when decoded look like a weird kind of MX record - having the structure of both a priority ...
7
votes
1
answer
15k
views
Force encoding with IIS 7
I try to force encoding with IIS 7.
When I add in the http response headers the key :
Content-Type and value charset=utf-8 i got this key content-type : text/html,content-type=utf-8
it's there a ...
7
votes
1
answer
2k
views
Apache authentication against LDAP fails for passwords with umlauts
When authenticating against LDAP (Active Directory, Server 2008) from an Apache server I get the following message in the error log:
authentication failure for "/": Password Mismatch
This only ...
6
votes
2
answers
5k
views
Is there a difference between en_US.utf8 and en_US.UTF-8?
Server info (DNS and IPs removed):
cat /proc/version && uname -a && java -version
Linux version 2.6.16.33-xenU (*************) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #2 SMP ...
6
votes
1
answer
7k
views
How to pass Question Mark (?) in password for HTTP Basic Authentication in URL parameters?
I am automating a website which requires HTTP Basic Authentication.
The suggestions given in this link work like a charm in most cases:
Can you pass user/pass for HTTP Basic Authentication in URL ...
6
votes
2
answers
6k
views
How can I query the encoding of a postgresql cluster?
When you create a new postgresql cluster you can specify an encoding for the cluster, but I'm not sure to know how to retrieve it once the cluster has been created.
I have seen that with \encoding ...
6
votes
2
answers
50k
views
How do I change the default character encoding in IIS on Windows Server 2003?
When validating my web page using the W3C Validator, I noticed that although I specify ISO-8859-1 encoding in my HTML, the web server seems to be specifying UTF-8 encoding in the HTTP headers.
I've ...
6
votes
0
answers
6k
views
Wrong filename encoding/decoding when downloading recursively with wget
I'm downloading files from a remote directory recursively using wget and whoever created the folders and files, used special characters such as è or Ó, when I download a single specificating the full ...
5
votes
7
answers
3k
views
How is it possible I can ssh to a machine from windows, but not my mac?
I'm at work right now and my colleagues prepared a Debian server for me and left.
Now I just found out that I can ssh into it using PuTTY from a Windows (XP) box just fine (no Linux machines here, ...
5
votes
1
answer
642
views
Is there a legitimate reason to use an encoded word in any header other than the subject?
Encoded words allow non-US-ASCII characters to be encoded as US-ASCII and thus placed into email headers.
http://en.wikipedia.org/wiki/MIME#Encoded-Word
Encoded words are often used in the Subject ...
5
votes
3
answers
218
views
which internet audio streaming server can I use?
I need an audio streaming setup that supports the following formats: WMA, AAC and MP3. The streams must be compatible both with desktop players like Winamp. Win Media Player and with Flash Player and ...
5
votes
2
answers
5k
views
Syntax for apache RewriteRule to match %-encoded URLs? (to fix character encoding issues; windows-1252 <=> utf-8 )
I host a webpage that has 'project²' in the URL, matching an on-disk directory project² from where static files are hosted.
This page is used by a java-based client to load data from URLs (...
5
votes
9
answers
9k
views
How to encode video to use HTML 5 video tag? [closed]
I'm trying to use <video> tag feature. I've encoded my file with ffmpeg:
ffmpeg -i 1.vob -f ogg -vcodec libtheora -b 800k -g 300 -acodec libvorbis -ab 128k out.ogv
I've placed this text in ...
4
votes
1
answer
1k
views
What encoding is used for non English languages in an email subject?
I'm writing a specification that essentially requires ASCII characters in an email message. I do recall that an email message can have a subject encoded in a foreign language, however I don't know ...
4
votes
3
answers
7k
views
FFMPEG AAC Encoder Vanished?
I'm running Ubuntu Server 10.04 LTS x64. I've been using ffmpeg on this machine to encode H.264 videos with AAC audio for over a year.
There was an update to the ffmpeg packages this week that seems ...
4
votes
1
answer
435
views
Is there a way to "replay" a packet capture of a smtp session for the purpose of debugging?
I'm troubleshooting a smtp issue involving character-set encoding and it's extremely difficult to involve the end user. I have a packet capture of an incoming smtp session that results in problematic ...
4
votes
1
answer
5k
views
Encoding issue between NFSv3 and NFSv4
We have some issues regarding NFS share regarding filenames encoding.
We were previously mounting as NFSv3 and started to use NFSv4 and some files previously created, with special characters (...
4
votes
0
answers
1k
views
Character encoding of file names with autoindex at webserver on windows
I have set up a webserver on windows 8.1. Now i am having problems with the character encodings of links: There are directories and file names containing german umlauts (ä ö ü ß). The autoindex ...
4
votes
1
answer
4k
views
Filename encoding switched to UTF-8 by tar when untaring to Windows share
We have different Magento installations (webshop) that allows images to be added to a product freely. When an image is added to a product, the file is named in a specific way that sometimes ...
3
votes
3
answers
29k
views
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 ...
3
votes
1
answer
220
views
MySQL think 'außer' equals to 'auser'
I tried to migrate some tables from one MySQL database to the other, but I encountered an error:
ERROR 1062 (23000) at line 108: Duplicate entry 'außer' for key 'PRIMARY'
And I tried to find why, in ...
3
votes
2
answers
36k
views
How can I change the default encoding of a tomcat server/container?
I'm having problems with the character encoding of my webapp and would like to know how I can go about changing the default encoding of tomcat on the Linux production server to match the cp 1252 ...
3
votes
2
answers
3k
views
Tell apache to convert LF to CRLF for text/plain
The problem: I want to serve CRLF from files encoded as LF
I have an apache2 httpd linux-based web-server configured to serve up (large) log files (*.log) generated by a linux-based simulator.
These ...
3
votes
1
answer
12k
views
Apache rewrite rules and special characters
I have a server where some files have an actual %20 in their name (they are generated by an automated tool which handles spaces this way, and I can't do anything about this); this is not a space: it's ...
3
votes
2
answers
3k
views
UTF-8 Characters in Apache Access Log ✔
The issue
I'm using PHP's apache_note() to log variables from web requests to a CustomLog format. However, try as I might, Apache doesn't want to log UTF-8 characters the way I'd like.
In PHP, I ...
3
votes
1
answer
1k
views
Application localization problems in english windows server 2012
Here's what does it look like (encoding problems):
OS is Windows Server 2012, English, clean installation.
Previously I've tested this software with same server, but with
russian OS version, it was ...
3
votes
2
answers
3k
views
URL Encoding force UTF-8 in CentOS 6.4
I have a simple html website in a CentOS 6.4 server.
In every html page i have set
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I have already added in a .htaccess ...
3
votes
2
answers
2k
views
How can UTF 8 encoding in a varchar field be transfered to an nvarchar field?
The UTF-8 characters (nearly a million records) were imported into varchar(max) as western european. Is there any known method of fixing this in SQL? We have verified that the "garbage" characters ...
3
votes
2
answers
190
views
PHP code protector
We are about to deploy our PHP web application in different branches of our company and I am looking for PHP code encoders as to protect our PHP scripts from tampering. I know that Zend Guard is ...
3
votes
0
answers
476
views
Encoding of username:password in Proxy-Authorize HTTP header
We use an explicit proxy to access the Internet.
This is what the HTTP header for "407 Proxy-Authentication required" looks like:
Proxy-Authenticate: BASIC realm="xxx"\r\n
Cache-...
3
votes
0
answers
2k
views
Can't use Intel Quicksync(headless) for transcoding
/dev/dri and /usr/lib/dri doesn't exist.
vainfo returns:
error: can't connect to X server!
error: failed to initialize display
Aborted
lspci | grep VGA returns:
00:02.0 VGA compatible controller: ...
3
votes
1
answer
9k
views
How can be changed the linux system's default character set?
I'm working in a software development team using svn. Since many developer's computers are working using windows, text file codification has to be agreed with everyone. I decided to use Linux, and ...
2
votes
2
answers
10k
views
How do I enable characters like [Æ, Ø, Å] in PuTTY/Debian?
I'm using VIM through PuTTY to work on my development server, but it gets rather difficult when I have to work on files containing characters like those mentioned in the title. Not only does it make ...
2
votes
1
answer
1k
views
base64 encoded emails
A problem:
Email from my server comes like this:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
...
2
votes
3
answers
3k
views
Cisco Default Character Encoding on Console
Question
What is the default character encoding used by most Cisco devices when communicating over the console?
Background
I'm a software developer, writing an application that interfaces with ...
2
votes
1
answer
8k
views
Apache reverse proxy encodes characters
I have setup apache reverse proxy to serve bugzilla from behind a firewall with following config
ProxyRequests Off
ProxyPass /bugzilla http://88.88.88.75/bugzilla nocanon
ProxyPassReverse /bugzilla ...
2
votes
2
answers
351
views
Where does the PHP/MySQL connection take its default charset?
I use mysql_connect to a database solely defined in UTF-8. Everywhere I can look in the configuration, I see UTF-8 Unicode (utf8) or utf8_general_ci.
However, when I open the PHP connection, then use ...
2
votes
1
answer
969
views
PHP: No mapping for the Unicode character..., for specific greek characters
I have a windows IIS server working with PHP. The user inserts a word via an HTML form, it goes to PHP and then PHP calls a COM dll (vb6) function passing the word to the function as a utf8 string.
...
2
votes
1
answer
3k
views
Setting up trac with PostgreSQL - How to set encoding to UTF8?
So I've been looking to install trac on my debian server with PostgreSQL. I setup everything as per the docs but when trying to run trac-admin /path initenv I get this error for database encoding:
...
2
votes
1
answer
693
views
motd with utf-8 encoding in Ubuntu Server 10.10
I've just changed default motd in Ubuntu (I edited /etc/update-motd.d/* files) and added some string in polish:
echo "Aby uzyskać dodatkowe informacje i przykładowe skrypty wpisz:"
but autogenerated ...