Charset Changing: Difference between revisions
Fixed the "??" and some Paths |
m Reverted edits by Upazixorys (Talk); changed back to last version by Olajideolaolorun |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 4: | Line 4: | ||
==Apache== | ==Apache== | ||
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>AddDefaultCharset WINDOWS-1250 | |||
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:/usr/local/mysql/bin/my_small.cnf) find line: <pre>Uncomment the following if you are NOT using BDB tables</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> | ||
# Insert the two following lines, '''before''' the line above: <pre>character-set-server = cp1250 | # Insert the two following lines, '''before''' the line above: <pre><nowiki>character-set-server = cp1250 | ||
collation-server = cp1250_general_ci</nowiki></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 |