WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPressÀÇ ¹®ÀÚ ÀÎÄÚµù ¹®Á¦´Â ¹öÀü 2.2·Î ¾÷±×·¹À̵åÇÑ ÈÄ
WordPress blogs that upgraded to Wordpress version 2.2 may encounter strange character set (charset) encoding problem where several characters especially apostrophes (¡¯), quotation marks (¡±), and hyphens or dashes (—) are displayed as strange characters such as â¢æ¢â or simply as question marks (?) when the posts are output to web pages. WordPressÀÇ ºí·Î±× Wordpress 2.2 ÀÌ»ó ¹öÀüÀÇ ¹®ÀÚ (¹®ÀÚ) ¿©±â¼ ¿©·¯ ¹®ÀÚ ÀÎÄÚµùÀ» ¼³Á¤, ƯÈ÷ ¹®Á¦°¡ ¹ß»ýÇÒ ¼öÀÖ½À´Ï´Ù ¾ÆÆ÷ ½ºÆ®·ÎÇÇ ( '), ÀÎ¿ë ºÎÈ£ ( "), ÇÏÀÌÇ ¶Ç´Â ´ë½Ã (-) ¢æ ¢â µî°ú °°Àº ÀÌ»óÇÑ ¹®ÀڷΠǥ½ÃµË´Ï´Ù ¾÷±×·¹ ÀÌµå ¶Ç´Â ´Ü¼øÈ÷ ¹°À½Ç¥ (?) ¶§ °Ô½Ã¹°ÀÌ À¥ ÆäÀÌÁö¿¡ Ãâ·ÂµË´Ï´Ù. As you have probably suspected, the issue is caused by character encoding method used by ´ç½ÅÀº ¾Æ¸¶µµ ÀǽÉÀÌ ¹æ¹ý¿¡ ÀÇÇØ »ç¿ëµÇ´Â ¹®ÀÚ ÀÎÄÚµù ¹®Á¦·Î ÀÎÇØ ¹ß»ýÇÕ´Ï´Ù WordPress 2.2 which supports setting of database collation and character set WordPressÀÇ 2.2 ¹× ¹®ÀÚ ÁýÇÕÀº µ¥ÀÌÅͺ£À̽ºÀÇ µ¥ÀÌÅÍ Á¤·Ä ¼³Á¤À» Áö¿øÇÕ´Ï´Ù in WordPress config file. WordPressÀÇ config ÆÄÀÏ¿¡ÀÖ½À´Ï´Ù.
The error happens because up to and including WordPress ver 2.1.3, almost all WordPress databases were created using the latin1 character set and the latin1_swedish_ci collation. ÀÌ ¿À·ù·Î ÀÎÇØ ÃÖ´ë ¹öÀü 2.1.3°ú ¿öµå µî, °ÅÀÇ ¸ðµç ¿öµå µ¥ÀÌÅͺ£À̽º´Â ¶óƾ ¹®ÀÚ ÁýÇÕ°ú Á¤·ÄÀ» »ç¿ëÇÏ¿© ¸¸µç latin1_swedish_ci ¹ß»ýÇÕ´Ï´Ù. Beginning WordPress v2.2, WordPress allows the user to define both the database character set and the collation in wp-config.php file, using DB_CHARSET and DB_COLLATE values. ¿öµå v2.2À» ½ÃÀÛÀ¸·Î, WordPressÀÇ »ç¿ëÀÚ DB_CHARSET°ú DB_COLLATE °ªÀ» »ç¿ëÇÏ¿© µ¥ÀÌÅͺ£À̽º ¸ðµÎ¿¡¼ ¹®ÀÚ ÁýÇÕ°ú wp¸¦ Á¤·Ä - config.php ÆÄÀÏÀ» Á¤ÀÇÇÒ ¼öÀÖ½À´Ï´Ù. With these values set to another encoding, WordPress assumes that the databases are indeed using the charset and collation too, where it¡¯s not the case for existing WordPress installation. ÀÌ·¯ÇÑ °¡Ä¡¸¦ ´Ù¸¥ ÀÎÄÚµùÀ¸·Î ¼³Á¤, ¿öµå´Â µ¥ÀÌÅͺ£À̽º´Â ½ÇÁ¦·Îµµ, ¾îµð¿¡ ¼³Ä¡Çϱâ À§ÇØ ±âÁ¸ÀÇ ¿öµåÀÇ °æ¿ì´Â ¹®ÀÚ ¹× µ¥ÀÌÅÍ Á¤·ÄÀ» »ç¿ëÇÏ´Â °ÍÀ¸·Î °¡Á¤ÇÕ´Ï´Ù. So if you¡¯re upgrading WordPress to 2.2 using the default wp-config.php, or have manually modified the file to include the new variables, or upgrading by using Fantastico which automatically update the wp-config.php file to include these two definitions which values set as Unicode UTF-8 by default, you will need to remove these definitions to solve the character encoding error. ±×·¡¼ ¸¸¾à ´ç½ÅÀÌ 2.2 »õ·Î¿î º¯¼ö, ¶Ç´Â ¾÷±×·¹ÀÌ µå - config.php wp¸¦ ÀÚµ¿À¸·Î ¾÷µ¥ÀÌÆ® ÆÄÀÏÀÌ µÎ Á¤ÀǸ¦ Æ÷ÇÔÇÏ´Â ÆÇŸ ½º ƼÄÚ¸¦ »ç¿ëÇÏ¿© Æ÷ÇÔÇϵµ·Ï ±âº» wp¸¦ - config.php, ¾Æ´Ï¸é ¼öµ¿À¸·Î ÆÄÀÏÀ» ¼öÁ¤ÇÑ ¿öµå ÇÁ·¹½º¸¦ »ç¿ëÇÏ¿© ¾÷±×·¹ÀÌ µåÇÏ´Â ÁßÀÔ´Ï´Ù ´Â À¯´Ï ÄÚµå UTF - 8·Î ¼³Á¤ °ªÀ» ±âº»À¸·Î, ´ç½ÅÀÌ Á¤ÀǸ¦ Á¦°ÅÇÏ´Â ¹®ÀÚ ÀÎÄÚµùÀ» ÇØ°áÇϱâ À§ÇØ ¿À·ù°¡ ÇÊ¿äÇÕ´Ï´Ù.
Open and edit your WordPress wp-config.php file. ±ÍÇÏÀÇ ¿öµå wp¸¦ - config.php ÆÄÀÏÀ» ¿¾î ÆíÁýÇÕ´Ï´Ù. Then locate the following two lines: ´ÙÀ½ µÎ ÁÙÀ» ã½À´Ï´Ù :
define(¡¯DB_CHARSET¡¯, ¡®utf8¡Ç); Á¤ÀÇ ( 'DB_CHARSET', 'Àº utf8');
define(¡¯DB_COLLATE¡¯, ¡±); Á¤ÀÇ ( 'DB_COLLATE', ");
You can simply delete these 2 lines away, or just remove the utf8 from the first line to make them looks like this: ´ç½ÅÀº ´Ü¼øÈ÷ ´Ù¸¥ °÷À¸·Î, ¶Ç´Â À̵é 2 °³ ¶óÀÎÀ» »èÁ¦ÇÒ ¼öÀÖ½À´Ï´Ù ¹Ù·Î ù ¹øÂ° ¶óÀο¡¼ ÀÌ·± ¸ð½ÀÀ» ¸¸µé±â À§Çؼ ±×µéÀº utf8 Á¦°Å :
define(¡¯DB_CHARSET¡¯, ¡±); Á¤ÀÇ ( 'DB_CHARSET', ");
define(¡¯DB_COLLATE¡¯, ¡±); Á¤ÀÇ ( 'DB_COLLATE', ");
With no charset and collation values set, WordPress will fall back to the old default, latin1 which matched the databases. ¾Æ¹« ¹®Àڼ°ú Á¤·Ä °ªÀ» ¼³Á¤, ¿öµå´Â latin1 ´Ù½Ã´Â µ¥ÀÌÅͺ£À̽º¿Í ÀÏÄ¡ÇÏ´Â ±âÁ¸ ±âº»ÀûÀ¸·Î ¶³¾îÁú °ÍÀÔ´Ï´Ù.
A possible better solution is °¡´É¼ºÀÌ ´õ ÁÁÀº ¼Ö·ç¼ÇÀÔ´Ï´Ù convert the Wordpress database to UTF8 Unicode WordPress µ¥ÀÌŸº£À̽º¸¦ UTF8 À¯´Ï ÄÚµå·Î º¯È¯ .
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. Áß¿ä :ÀÌ ±â°è´Â "º¸Áõµµ¾øÀÌÀÖ´Â ±×´ë·Î"Á¦°øµË´Ï´Ù ÆäÀÌÁö¸¦ ¹ø¿ªÇß´Ù. Machine translation may be difficult to understand. ±â°è ¹ø¿ªÀ» ÀÌÇØÇϱ⠾î·Á¿ï ¼öÀÖ½À´Ï´Ù. Please refer to À» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù original English article ¿ø·¡ ¿µ¾î ¹®¼ whenever possible. ¾ðÁ¦µç °¡´ÉÇÕ´Ï´Ù.
Share and contribute or get technical support and help at °øÀ¯¿Í ±â¿©Çϰųª ±â¼ú Áö¿ø°ú¿¡ µµ¿òÀÌ My Digital Life Forums ³» µðÁöÅÐ »ýȰ Æ÷·³ .
Related Articles °ü·Ã ±â»ç
- How to Convert Character Set and Collation of WordPress Database ¹®ÀÚ ÁýÇÕ°ú Á¤·ÄÇÏ´Â ¹æ¹ýÀ» º¯È¯ WordPress µ¥ÀÌŸº£À̽ºÀÇ
- Download Previous or Old Version of WordPress ÀÌÀü ¹öÀüÀ» ´Ù¿î·ÎµåÇϰųª ¿öµåÀÇ ÀÌÀü
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support ´Ù¿î·Îµå WordPressÀÇ 2.3 ¸±¸®½º Èĺ¸ 1 ÅÂ±× Áö¿ø (RC1ÀÌ)
- How to Customize, Modify or Change WordPress Database Connection Error Page »ç¿ëÀÚ ÁöÁ¤ÇÏ´Â ¹æ¹ý, ¼öÁ¤ ¶Ç´Â º¯°æ WordPress µ¥ÀÌŸº£À̽º ¿¬°á ¿À·ù ÆäÀÌÁö·Î
- Integrate WordPress including Comments with bbPress Forum using bbSync WordPressÀÇ ÄÚ¸àÆ®¸¦ »ç¿ëÇÏ´Â µî ÅëÇÕ bbPress Æ÷·³°ú ÇÔ²² bbSync
- WordPress 2.1.1 Critical Security Alert - Download Upgrade to 2.1.2 ¿öµå 2.1.1 Áß¿ä º¸¾È °æº¸ - ´Ù¿î·Îµå 2.1.2·Î ¾÷±×·¹ À̵å
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU) WordPressÀÇ ÃֽйöÀüÀ» ÀÚµ¿À¸·Î ¾÷µ¥ÀÌÆ® ÀÚµ¿ ¾÷±×·¹ À̵å Ç÷¯±×ÀÎ (WPAU)°ú ÇÔ²²
- WordPress 2.6 with Change Revision Tracking Feature Available for Free Download WordPressÀÇ 2.6 ¹«·á·Î ´Ù¿î·Îµå¿¡ ´ëÇÑ º¯°æ ±Ý¿äÀÏ ¼öÁ¤ ÃßÀû ±â´ÉÀ» »ç¿ëÇÒ ¼ö
- Disable Auto Go To (Jump) To Read More Tag ÇØÁ¦ ÀÚµ¿À¸·Î ´õ ¸¹Àº ű׸¦ ÀÐÀ¸·Á¸é (µµ¾à)·Î À̵¿
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working WordPressÀÇ Paginating ¶Ç´Â ½ºÇø´ Æ÷½ºÆ® ¶Ç´Â ÆäÀÌÁö Nextpage ÇÔ²² ¿öµå¿¡ ¾È µÊ

































September 16th, 2008 10:05 9 ¿ù 16 ÀÏ 2008 10:05
[...] caused due to the encoding and collation, however after following the recommendations of sites like [...] ÀÎÄÚµù ¹× Á¤·ÄÇÏ´Â °ÍÀº ¸Å¿ì »çÀÌÆ®¿Í ¸¶Âù°¡Áö·Î ´ÙÀ½°ú ÀÌÈÄÀÇ ÃßõÀ¸·Î ÀÎÇØ http://www.mydigitallife.info/2007/0¡¦to-version-22/ ... http://www.mydigitallife.info/2007/0 - ¹öÀü - 22 / I was still unable to get rid of the huge amount of garbled characters. ³ ¾ÆÁ÷ ¿¬¶ôÇÏÁö ¸øÇß½À´Ï´Ù ±úÁ³½À ij¸¯ÅÍÀÇ ¾öû³ ±Ý¾×À» »©½Ã¿À. Ultimately, I spent some [...] °á±¹, ³»°¡ Á» º¸³Â´Ù [...]
September 6th, 2008 19:50 2008³â 9¿ù 6ÀÏ 19:50
Thanks so much — you saved me hours of hair pulling! Á¤¸» °í¸¶¿ö¿ä - ³¯ ¸Ó¸®Ä«¶ôÀ» ³¯¸®°íÀÇ ½Ã°£À» ±¸Çß¾î!
August 24th, 2008 11:20 8 ¿ù 24 ÀÏ 2008 11:20
Thanks! °¨»çÇÕ´Ï´Ù! Saved me a lot of time. ³ª¸¦ ±¸Çß¾î ½Ã°£À» ¸¹ÀÌÇß´Ù.
August 23rd, 2008 05:24 2008³â 8¿ù 23ÀÏ 5½Ã 24ºÐ
thanks °¨»çÇÕ´Ï´Ù
June 18th, 2008 08:42 6 ¿ù 18 ÀÏ 2008 8½Ã 42ºÐ
Isn¡¯t UTF8 much better? ÀÌ UTF8 ¾Æ´Ï¶ó ÈξÀ ´õ? Why would you limit yourself to Latin1 just because it used to be the default? ¿Ö ¶óƾ ´ÜÁö ±×°ÍÀ» »ç¿ëÇϱ⠶§¹®¿¡ ±âº»ÀÌ µÉ ÀÚ½ÅÀ» Á¦ÇÑÇÒ °ÍÀ̶ó°í?
June 6th, 2008 20:56 2008³â 6¿ù 6ÀÏ 20:56
Just wanted to say: this had afflicted me for months. ±×³É ¸»À»ÇÏ°í ½Í¾ú :ÀÌ ¼ö°³¿ù µ¿¾È ³¯ °í¹ÎÇß´Ù. Never found a workable solution. Àý´ë ÇØ°á ¹æ¹ýÀ» ¹ß°ßÇß´Ù. Stumbled on your site today and it worked perfectly. ±ÍÇÏÀÇ »çÀÌÆ®¿¡ ¿À´ÃÀº ºñƲ°ú ±×°ÍÀ» ¿Ïº®ÇÏ°Ô ÀÏÇß´Ù. Thanks so much! Á¤¸» °í¸¶¿ö¿ä!
February 19th, 2008 05:04 2 ¿ù 19 ÀÏ 2008 5½Ã 4ºÐ
Hi, thanks for doing this. ¾È³çÇϼ¼¿ä, ÀÌ·¸°Ô µµ¿Í Áּż °¨»çÇÕ´Ï´Ù. it¡¯s the only thing I¡¯ve found. ³»°¡ ãÀº °Í ÇѰ¡Áö. I remove the utf8 and a lot of my posts still have the question marks. ³ª´Â ¿©ÀüÈ÷ ¹°À½Ç¥°¡¸¦ UTF8 ³» °Ô½Ã¹°À» ¸¹ÀÌ Á¦°ÅÇÒ ¼öÀÖ½À´Ï´Ù. any ideas what I may need to do? ¾î¶² ¾ÆÀ̵ð¾î¸¦ À§ÇØ ³»°¡ ¹»ÇØ¾ß µÉ±î¿ä?
February 17th, 2008 03:44 2 ¿ù 17 ÀÏ 2008 3½Ã 44ºÐ
thanks for the help, it worked out for me µµ¿Í Á༠°í¸¶¿ö, ³¯ À§ÇØ ÀÏÇÑ
January 5th, 2008 06:55 1 ¿ù 5 ÀÏ 2008 06:55
Thx a lot! °¨»çÇÕ´Ï´Ù ¸¹ÀÌ!
You saved me hours! ´ç½ÅÀÌ ³»°Ô ½Ã°£À» ±¸Çß¾î!