· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
dasomoli/Howto Phpbb2 Utf8

phpbb2 ¸¦ UTF-8 ÀÎÄÚµùÀ¸·Î »ç¿ëÇϱâ


  • phpbb2 ÀÇ Çѱ¹¾î ¹ø¿ªÀº ¸ðµÎ euc-kr À» ±âÁØÀ¸·Î µÇ¾î ÀÖ´Ù. À̸¦ utf-8 ·Î ¾²´Â ¹æ¹ýÀ» ¾Ë¾Æº»´Ù. ÆíÀÇ»ó root ·Î ÀÛ¾÷ÇÏ¿´°í, ¿ìºÐÅõ ´ëÆÛÀÇ phpbb2 ÆÐŰÁö¸¦ ¼³Ä¡ÇÑ È¯°æ ÇÏ¿¡¼­ ¼öÇàÇÏ¿´´Ù. php.ini ¿¡ default_encoding Àº ¼³Á¤ÇÏÁö ¾Ê°í »ç¿ëÇÏ¿´´Ù.

  • phpbb2 ÀÇ language(¿ìºÐÅõÀÇ ÆÐŰÁö ±âº» °æ·Î:/usr/share/phpbb2/site/language) µð·ºÅ丮¿¡ ´ÙÀ½°ú °°Àº ½ºÅ©¸³Æ®¸¦ ÀÛ¼ºÇÑ ÈÄ ½ÇÇàÇÑ´Ù.
    #!/bin/sh
    
    for i in $( find ./lang_korean ); do
           if [ -f $i ]
           then
                   iconv -f euc-kr -t utf-8 -o $i.bak $i
                   mv -f $i.bak $i
           fi
    done
    
    for i in $( find ./lang_korean ); do
            if [ -f $i ]
            then
                    sed "s/euc-kr/utf-8/g" < $i > $i.new
                    mv -f $i.new $i
            fi
    done
    


  • phpbb2 ÀÇ site/includes µð·ºÅ丮 ¾È¿¡ ÀÖ´Â emailer.php ¸¦ ¿­¾î¼­ Send ÇÔ¼ö¿¡ Çì´õ ¸¸µå´Â ºÎºÐ µÚ¿¡ Subject ¸¦ ÀÎÄÚµùÇØ¼­ ³Ö¾îÁØ´Ù.
                    // Build header
                    $this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '')  . (($bcc != '') ? "Bcc: $bcc\n" : '');
    
                    $this->subject = $this->encode($this->subject); // <-- ¿©±â Ãß°¡
    
                    // Send message ... removed $this->encode() from subject for time being
                    if ( $this->use_smtp )
                    {
    

ID
Password
Join
Be careful how you get yourself involved with persons or situations that can't bear inspection.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-06-03 01:43:47
Processing time 0.0036 sec