Charset Changing: Difference between revisions

Fixed the "??" and some Paths
(categorized)
(Fixed the "??" and some Paths)
Line 1: Line 1:
This wiki article will help you change your CHARacter SET to something else other than the default Uniform Server setting (ISO-8859-1 / latin1.)
This wiki article will help you change your <u>Char</u>acter <u>Set</u> to something else other than the default Uniform Server setting (ISO-8859-1 / latin1).


In this article, our goal is to set the charset to '''cp1250'''
In this article, our goal is to set the charset to '''cp1250'''


==Apache==
==Apache==
# Find this statement in the Apache configuration file (W:/local/apache2/conf/httpd.conf) <pre>AddDefaultCharset iso-8859-1</pre> and change it to: <pre>AddCharset WINDOWS-1250 .cp-1250 .win-1250</pre> ''Note: See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for the official list of charset names and their respective RFCs.''
# Find this statement in the Apache configuration file (W:/usr/local/apache2/conf/httpd.conf) <pre>AddDefaultCharset iso-8859-1</pre> and change it to: <pre>AddCharset WINDOWS-1250 .cp-1250 .win-1250</pre> ''Note: See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for the official list of charset names and their respective RFCs.''


==MySQL==
==MySQL==
# In the file (W:/user/local/mysql/bin/my_small.cnf) find line: <pre>??</pre>
# In the file (W:/usr/local/mysql/bin/my_small.cnf) find line: <pre>Uncomment the following if you are NOT using BDB tables</pre>
# Uncomment the following if you are NOT using BDB tables: <pre>??</pre>
# Insert the two following lines, '''before''' the line above: <pre>character-set-server = cp1250<br />collation-server = cp1250_general_ci</pre>
# Insert the two following lines: <pre>??</pre>
# BEFORE this line: <pre> ??</pre>
# Restart Apache and MySQL and verify that system variables looks like this: <pre><nowiki>character set client latin1 cp1250
# Restart Apache and MySQL and verify that system variables looks like this: <pre><nowiki>character set client latin1 cp1250
character set connection cp1250 cp1250
character set connection cp1250 cp1250
244

edits