Charset Changing: Difference between revisions

MrX (talk | contribs)
m Fixed more things, # (numbers) don't work after a new line, so I had to use * (bullets).. Anyone know how to solve this?
m Reverted edits by Upazixorys (Talk); changed back to last version by Olajideolaolorun
 
(6 intermediate revisions by 4 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>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>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><nowiki>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>
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
character set database cp1250 cp1250
character set database cp1250 cp1250