pandoc-0.46: Conversion between markup formats

Text.Pandoc.UTF8

Description

Functions for converting Unicode strings to UTF-8 and vice versa.

Taken from http://www.cse.ogi.edu/~hallgren/Talks/LHiH/base/lib/UTF8.hs. (c) 2003, OGI School of Science & Engineering, Oregon Health and Science University.

Modified by Martin Norbaeck to pass illegal UTF-8 sequences through unchanged.

Synopsis

Documentation

fromUTF8 :: String -> StringSource

Take a UTF-8 string and decode it into a Unicode string.

toUTF8 :: String -> StringSource

Take a Unicode string and encode it as a UTF-8 string.