• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6126: UTF-8 characters are displayed all broken.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension CompareRevisionsAddOn Urgent New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


UTF-8 characters are displayed all broken. The apache log file complains like the below.

compare: Parsing of undecoded UTF-8 will give garbage when decoding entities at /var/www/uvr/htdocs/twiki/lib/TWiki/Contrib/CompareRevisionAddOn/Compare.pm line 316.

I had to modify the line like below to use decode_utf8() function and it gets rid of garbled international characters as well as parse warnings in the log.


use Encode; is also required for this function.

A diff is attached below.

-- TWiki:Main/KyungdahmYun - 18 Nov 2008

Summary UTF-8 characters are displayed all broken.
ReportedBy TWiki:Main.KyungdahmYun
Codebase 4.2.3
SVN Range

AppliesTo Extension
Component CompareRevisionsAddOn
Priority Urgent
CurrentState New


TargetRelease n/a

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdiff decode_utf8_patch.diff r1 manage 0.5 K 2008-11-18 - 06:24 UnknownUser A patch against 2008-01-25 release.
Topic revision: r1 - 2008-11-18 - KyungdahmYun
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback