Profile of pheelfree#

반갑습니다. JSPWiki를 오래전부터 알고 있었는데 실제 사용하기까지는 정말 오래걸렸습니다.

한글 안되는 문제로 고민을 많이하다가 결국에는 소스를 뒤져보는 데까지....

역시 오픈소스는 제대로 안될때 어렵습니다.

I am user of JSPWiki in Seoul Korea.

For the character encoding problem, I studied deep inside of JSPWiki source code.

I think the problem is caused by the code like this

public class WikiEngine
.....
                res = new String(res.getBytes("ISO-8859-1"),
                                 getContentEncoding() );
      
                // How about change this like below
                res = new String(res.getBytes(""),
                                 getContentEncoding() );
.....

    public String encodeName( String pagename )
    {
        try
        {
            //return URLEncoder.encode( pagename, (m_useUTF8 ? "UTF-8" : "ISO-8859-1" ));
            // How about change this >> like below
            return URLEncoder.encode( pagename, m_encoding);
        }
        catch( UnsupportedEncodingException e )
        {
            //throw new InternalWikiException("ISO-8859-1 not a supported encoding!?!  Your platform is borked.");
            throw new InternalWikiException(m_encoding + " is not a supported encoding!?!  Your platform is borked.");
        }        
    }
This is Just my opinion !!

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-2) was last changed on 01-Feb-2008 11:56 by pheelfree