Mercurial > hg > orthanc
diff UnitTestsSources/UnitTestsMain.cpp @ 949:766a57997121
enumeration for encodings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Jun 2014 15:02:37 +0200 |
parents | 27d256e0b458 |
children | 98d6ba37c7dc 743a75b14bef 886652370ff2 |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Wed Jun 25 11:36:41 2014 +0200 +++ b/UnitTestsSources/UnitTestsMain.cpp Wed Jun 25 15:02:37 2014 +0200 @@ -414,7 +414,7 @@ ASSERT_EQ("&abc", Toolbox::ConvertToAscii(s)); // Open in Emacs, then save with UTF-8 encoding, then "hexdump -C" - std::string utf8 = Toolbox::ConvertToUtf8(s, "ISO-8859-1"); + std::string utf8 = Toolbox::ConvertToUtf8(s, Encoding_Latin1); ASSERT_EQ(15u, utf8.size()); ASSERT_EQ(0xc3, static_cast<unsigned char>(utf8[0])); ASSERT_EQ(0xa0, static_cast<unsigned char>(utf8[1]));