From e816ae237a5112364ad2eb7d8cb4f3295ae711e8 Mon Sep 17 00:00:00 2001 From: krasimir Date: Sat, 25 Oct 2008 20:25:09 +0000 Subject: add cp1252. usefull for Swedish and German --- src/GF/Text/Coding.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/GF/Text/Coding.hs') diff --git a/src/GF/Text/Coding.hs b/src/GF/Text/Coding.hs index 47aaa5cb5..f29ae7a54 100644 --- a/src/GF/Text/Coding.hs +++ b/src/GF/Text/Coding.hs @@ -2,13 +2,16 @@ module GF.Text.Coding where import GF.Text.UTF8 import GF.Text.CP1251 +import GF.Text.CP1252 encodeUnicode e = case e of "utf8" -> encodeUTF8 "cp1251" -> encodeCP1251 + "cp1252" -> decodeCP1252 _ -> id decodeUnicode e = case e of "utf8" -> decodeUTF8 "cp1251" -> decodeCP1251 + "cp1252" -> decodeCP1252 _ -> id -- cgit v1.2.3