Skip to main content

Questions tagged [encoding]

Encoding is changing a sequence of characters to symbols.

Filter by
Sorted by
Tagged with
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 ...
rwired's user avatar
  • 381
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 ...
Devdatta Tengshe's user avatar
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 ...
Selivanov Pavel's user avatar
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
victor hugo's user avatar
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(...
sente's user avatar
  • 273
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 ...
jdev's user avatar
  • 205
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=...
Carlos Campderrós's user avatar
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-...
chiborg's user avatar
  • 1,093
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 ...
PP.'s user avatar
  • 3,456
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 ...
w0rldart's user avatar
  • 217
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 ...
Henry's user avatar
  • 171
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 ...
Cédric Boivin's user avatar
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 ...
StefanMacke's user avatar
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 ...
Matthew Herbst's user avatar
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 ...
Sandeep Koparde's user avatar
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 ...
Jaime Soriano's user avatar
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 ...
Mark Bell's user avatar
  • 308
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 ...
Nagarz's user avatar
  • 61
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, ...
winsmith's user avatar
  • 163
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 ...
james.garriss's user avatar
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 ...
evilpenguin's user avatar
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 (...
Jules Kerssemakers's user avatar
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 ...
lexsys's user avatar
  • 2,943
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 ...
makerofthings7's user avatar
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 ...
Andrew Ensley's user avatar
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 ...
Mike B's user avatar
  • 12.1k
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 (...
Lebowski's user avatar
  • 141
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 ...
peterwilm's user avatar
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 ...
Dabu's user avatar
  • 359
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 ...
Brent's user avatar
  • 181
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 ...
Fang-Pen Lin's user avatar
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 ...
Dark Star1's user avatar
  • 1,445
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 ...
Alex Brown's user avatar
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 ...
Massimo's user avatar
  • 71.7k
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 ...
Bill Huertas's user avatar
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 ...
astef's user avatar
  • 161
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 ...
segconn's user avatar
  • 31
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 ...
RelativitySQL's user avatar
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 ...
Andreas Wong's user avatar
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-...
Marki's user avatar
  • 2,854
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: ...
Yahvav's user avatar
  • 31
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 ...
JPCF's user avatar
  • 164
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 ...
Hubro's user avatar
  • 1,158
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 ...
RandomWhiteTrash's user avatar
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 ...
gMale's user avatar
  • 193
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 ...
rojanu's user avatar
  • 179
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 ...
Lazlo's user avatar
  • 123
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. ...
MirrorMirror's user avatar
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: ...
ingh.am's user avatar
  • 283
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 ...
klew's user avatar
  • 733