[mhonarc] UTF-8 as per mhonarc FAQ
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mhonarc] UTF-8 as per mhonarc FAQ
- Date: Mon, 18 Feb 2013 21:30:48 +0000 (UTC)
commit f5a821c87704a55302b96b13c3dd668db98eb299
Author: Olav Vitters <olav vitters nl>
Date: Mon Feb 18 22:30:45 2013 +0100
UTF-8 as per mhonarc FAQ
private-rc/base.rc | 14 ++++++++++++++
public-rc/base.rc | 15 +++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/private-rc/base.rc b/private-rc/base.rc
index aab1933..38cc9e5 100644
--- a/private-rc/base.rc
+++ b/private-rc/base.rc
@@ -2,6 +2,20 @@
en_US.UTF-8
</LANG>
+<TextEncode>
+utf-8; MHonArc::UTF8::to_utf8; MHonArc/UTF8.pm
+</TextEncode>
+
+<-- With data translated to UTF-8, it simplifies CHARSETCONVERTERS -->
+<CharsetConverters override>
+default; mhonarc::htmlize
+</CharsetConverters>
+
+<-- Need to also register UTF-8-aware text clipping function -->
+<TextClipFunc>
+MHonArc::UTF8::clip; MHonArc/UTF8.pm
+</TextClipFunc>
+
<INCLUDE>
/home/admin/mhonarc/private-rc/date.rc
/home/admin/mhonarc/private-rc/thread.rc
diff --git a/public-rc/base.rc b/public-rc/base.rc
index 1582d27..480ac1a 100644
--- a/public-rc/base.rc
+++ b/public-rc/base.rc
@@ -2,6 +2,21 @@
en_US.UTF-8
</LANG>
+
+<TextEncode>
+utf-8; MHonArc::UTF8::to_utf8; MHonArc/UTF8.pm
+</TextEncode>
+
+<-- With data translated to UTF-8, it simplifies CHARSETCONVERTERS -->
+<CharsetConverters override>
+default; mhonarc::htmlize
+</CharsetConverters>
+
+<-- Need to also register UTF-8-aware text clipping function -->
+<TextClipFunc>
+MHonArc::UTF8::clip; MHonArc/UTF8.pm
+</TextClipFunc>
+
<INCLUDE>
/home/admin/mhonarc/public-rc/date.rc
/home/admin/mhonarc/public-rc/thread.rc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]