namespace lyx {
-/// String type for storing the main text in UCS4 encoding
-typedef std::basic_string<char_type> docstring;
-
/// Creates a docstring from a C string of ASCII characters
docstring const from_ascii(char const *);
/// convert \p s from ucs4 to the encoding of the file system.
std::string const to_filesystem8bit(docstring const & s);
+/// convert \p s from ucs4 to the \p encoding.
+std::string const to_iconv_encoding(docstring const & s,
+ std::string const & encoding);
+
+/// convert \p s from \p encoding to ucs4.
+docstring const from_iconv_encoding(std::string const & s,
+ std::string const & encoding);
+
/// normalize \p s to precomposed form c
docstring const normalize_c(docstring const & s);