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 ³» µðÁöÅÐ »ýȰ Æ÷·³ .



34 Responses to ¡°WordPress Charset Encoding Problem After Upgrading to Version 2.2¡± "WordPressÀÇ Charset ÀÎÄÚµù ¹®Á¦¸¦ ¹öÀü 2.2À¸·Î ¾÷±×·¹ À̵å"34 ÀÀ´ä

Pages: [2] ÆäÀÌÁö : [2] 1 » Show All ¸ðµÎº¸±â

  1. Fix odd characters in Wordpress posts | Chris Fay & Jennie Fay¡¯s Webportal WordPressÀÇ °Ô½Ã¹°¿¡ ÀÌ»óÇÑ ¹®ÀÚ ¼öÁ¤ | Å©¸®½º ÆäÀÌ & Á¦´Ï ÆäÀÌÀÇ Webportal
    September 16th, 2008 10:05 9 ¿ù 16 ÀÏ 2008 10:05
    34

    [...] 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 [...] °á±¹, ³»°¡ Á» º¸³Â´Ù [...]

  2. Paula G Æú¶ó G Á¶
    September 6th, 2008 19:50 2008³â 9¿ù 6ÀÏ 19:50
    33

    Thanks so much — you saved me hours of hair pulling! Á¤¸» °í¸¶¿ö¿ä - ³¯ ¸Ó¸®Ä«¶ôÀ» ³¯¸®°íÀÇ ½Ã°£À» ±¸Çß¾î!

  3. Ates Goral Ates Goral
    August 24th, 2008 11:20 8 ¿ù 24 ÀÏ 2008 11:20
    32

    Thanks! °¨»çÇÕ´Ï´Ù! Saved me a lot of time. ³ª¸¦ ±¸Çß¾î ½Ã°£À» ¸¹ÀÌÇß´Ù.

  4. Rodrigo ·Îµå¸®°í
    August 23rd, 2008 05:24 2008³â 8¿ù 23ÀÏ 5½Ã 24ºÐ
    31

    thanks °¨»çÇÕ´Ï´Ù

  5. Endolith
    June 18th, 2008 08:42 6 ¿ù 18 ÀÏ 2008 8½Ã 42ºÐ
    30

    Isn¡¯t UTF8 much better? ÀÌ UTF8 ¾Æ´Ï¶ó ÈξÀ ´õ? Why would you limit yourself to Latin1 just because it used to be the default? ¿Ö ¶óƾ ´ÜÁö ±×°ÍÀ» »ç¿ëÇϱ⠶§¹®¿¡ ±âº»ÀÌ µÉ ÀÚ½ÅÀ» Á¦ÇÑÇÒ °ÍÀ̶ó°í?

  6. Tom Clarke Åè Ŭ¶óÅ©
    June 6th, 2008 20:56 2008³â 6¿ù 6ÀÏ 20:56
    29

    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! Á¤¸» °í¸¶¿ö¿ä!

  7. Josh Á¶½¬
    February 19th, 2008 05:04 2 ¿ù 19 ÀÏ 2008 5½Ã 4ºÐ
    28

    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? ¾î¶² ¾ÆÀ̵ð¾î¸¦ À§ÇØ ³»°¡ ¹»ÇØ¾ß µÉ±î¿ä?

  8. Marthin
    February 17th, 2008 03:44 2 ¿ù 17 ÀÏ 2008 3½Ã 44ºÐ
    27

    thanks for the help, it worked out for me µµ¿Í Á༭ °í¸¶¿ö, ³¯ À§ÇØ ÀÏÇÑ :)

  9. Bruno Silva ºê·ç³ë ½Ç¹Ù
    January 5th, 2008 06:55 1 ¿ù 5 ÀÏ 2008 06:55
    26

    Thx a lot! °¨»çÇÕ´Ï´Ù ¸¹ÀÌ!
    You saved me hours! ´ç½ÅÀÌ ³»°Ô ½Ã°£À» ±¸Çß¾î!

Pages: [2] ÆäÀÌÁö : [2] 1 » Show All ¸ðµÎº¸±â

Leave a Reply ȸ½ÅÀ» ³²°ÜÁÖ¼¼¿ä

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> ÀÌ·¯ÇÑ ÅÂ±× : title="">Àº <a href="" »ç¿ëÇÒ ¼öÀÖ½À´Ï´Ù <abbr title=""> <acronym title="">ÀÇ <b> <blockquote cite=""> <cite>ÀÇ <code> <¹ã ³¯Â¥ = "">Àº <em>°¡ <i> <q cite=""> <strike>ÀÇ <strong>

Subscribe without commenting ÄÚ¸àÆ®¸¦ ±¸µ¶ÇÏÁö ¾Ê°í


Custom Search

New Articles »õ ¹®¼­

Incoming Search Terms for the Article °Ë»ö Á¶°Ç¿¡ ´ëÇÑ ¼ö½Å Á¦

wordpress encoding ÀÎÄÚµù ¿öµå - - wordpress charset WordPressÀÇ ¹®Àڼ - - wordpress utf8 ¿öµåÀº utf8 - - wordpress db_charset ¿öµå db_charset - - wordpress Äú quotation marks ´©±¸³ª ÀÎ¿ë ºÎÈ£ ¿öµå - - wordpress encoding issue ÀÎÄÚµù ¹®Á¦´Â WordPressÀÇ - - symantec encoding problem ½Ã¸¸ÅØÀÇ ÀÎÄÚµù ¹®Á¦ - - wordpress encoding problem ÀÎÄÚµù ¹®Á¦ ¿öµå - - wordpress "utf8" ""Àº utf8 ¿öµå - - wordpress database upgrade 2.6 problems latin1 2.1.3 ¹®Á¦´Â latin1 WordPressÀÇ 2.6 µ¥ÀÌÅͺ£À̽º ¾÷±×·¹ À̵å 2.1.3 - - tomcat turkish character encoding tomcatÀ» ÅÍŰ¾î ¹®ÀÚ ÀÎÄÚµù - - weird A character's everywhere wordpress ÀÌ»óÇÑ ¹®ÀÚ°¡ »ç¹æ¿¡ ¿öµåÀÇ - - wordpress +safari +latin1 ¿öµå + »çÆÄ¸® +´Â latin1 - - wordpress mail encoding WordPressÀÇ ¸ÞÀÏ ÀÎÄÚµù - - encoding wordpress WordPressÀÇ ÀÎÄÚµù - - internet explorer 8 arabic encoding problem ÀÎÅÍ³Ý ÀͽºÇ÷η¯ 8 ÀÎÄÚµù ¹®Á¦ ¾Æ¶óºñ¾Æ¾î - - symantec endpoint encoding issues ½Ã¸¸ÅØÀÇ ¿£µå Æ÷ÀÎÆ® ÀÎÄÚµù ¹®Á¦ - - wordpress utf-8 ¿öµå´Â UTF - 8 - - wordpress+change encoding ¿öµå + º¯°æ ÀÎÄÚµù - - db_charset db_Collate archive db_charset db_Collate ¾ÆÄ«À̺ê - - db_collate wordpress ¿öµå db_collate - - how encode wordpress password ÀÎÄÚµù ¹æ¹ý WordPressÀÇ ºñ¹Ð ¹øÈ£ - - wordpress change encoding WordPressÀÇ ÀÎÄÚµùÀ» º¯°æ - - wordpress database utf8 WordPress µ¥ÀÌŸº£À̽º¸¦ UTF8 - - wordpress rss encoding change WordPressÀÇ RSS¸¦ º¯°æ ÀÎÄÚµù - - wordpress utf-8 weird symbols WordPressÀÇ UTF - 8·Î ÀÌ»óÇÑ ±âÈ£ - - encodage apostrophes wordpress ¾ÆÆ÷ ½ºÆ®·ÎÇÇ encodage ¿öµå - - encode charsets %20 + ÀÎÄÚµù charsets % 20 + - - encoding utf-8 wordpress ÀÎÄÚµùÀº UTF - 8 WordPressÀÇ - - using hyphen problem word press title ¹®Á¦´Â ´Ü¾î¸¦ »ç¿ëÇÏ¿© ۸¦ ÇÏÀÌÇ Á¦¸ñ - - wordpress comment out define('DB_CHARSET', 'utf8') ÁÖ¼® Á¤ÀÇ ¿öµå ( 'DB_CHARSET', 'Àº utf8') - - wordpress after upgrade czech coding ¾÷±×·¹ À̵å ÈÄ Ã¼ÄÚ¾î ¿öµå ÄÚµù - - hack wordpress locked post °Ô½Ã¹°ÀÌ Àá°Ü WordPressÀÇ ÇØÅ· - - how to hack wordpress locked post °¤Çô ÇØÅ·ÇÏ´Â ¹æ¹ýÀ» °Ô½Ã ¿öµå - - svensk charset Svensk ¹®Àڼ - - wordpress utf-8 not working WordPressÀÇ UTF - 8·Î ÀÛµ¿ÇÏÁö - - wordpress encoding settings ÀÎÄÚµù ¼³Á¤À» WordPressÀÇ - - wordpress upgrade character encoding ¹®ÀÚ ÀÎÄÚµù ¿öµå ¾÷±×·¹ À̵å - - arabic encoding blackberry ¾Æ¶ø¾î ÀÎÄÚµù ºí·¢º£¸® - - Encoding for pages and feeds greek wordpress ÀÎÄÚµù ÆäÀÌÁö¿¡ ´ëÇÑ È£Äª WordPressÀÇ Çǵå - - mysql 4 DB_CHARSET wordpress MySQLÀº 4 DB_CHARSET ¿öµå - - opera charset config ¿ÀÆä¶ó ¹®ÀÚ ±¸¼º - - wordpress+change charset ¿öµå + º¯°æ ¹®Àڼ - - wordpress utf-8 gb2312 WordPressÀÇ UTF - 8·Î GB2312 - - wordpress and utf-8 ¿öµå¿Í UTF - 8·Î - - arabic in wordpress encode WordPressÀÇ ÀÎÄÚµù ¾Æ¶ø¾î - - charset wordpress ¹®Àڼ ¿öµå - - encoding problem wordpress php ¹®Á¦´Â WordPressÀÇ´Â PHP ÀÎÄÚµù - - latin utf8 wordpress WordPressÀÇ ¶óƾ¾îÀº utf8 - - ms word charset problem web MS Word°¡ ¹®Àڼ ¹®Á¦´Â À¥ - -