Mercurial > hg > orthanc
comparison Core/Toolbox.cpp @ 957:63973b76a51f
detection of encoding
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Jun 2014 21:21:18 +0200 |
parents | 2fd5a163776d |
children | 886652370ff2 |
comparison
equal
deleted
inserted
replaced
956:2fd5a163776d | 957:63973b76a51f |
---|---|
511 case Encoding_Latin1: | 511 case Encoding_Latin1: |
512 encoding = "ISO-8859-1"; | 512 encoding = "ISO-8859-1"; |
513 break; | 513 break; |
514 | 514 |
515 default: | 515 default: |
516 throw OrthancException(ErrorCode_ParameterOutOfRange); | 516 throw OrthancException(ErrorCode_NotImplemented); |
517 } | 517 } |
518 | 518 |
519 try | 519 try |
520 { | 520 { |
521 return boost::locale::conv::to_utf<char>(source, encoding); | 521 return boost::locale::conv::to_utf<char>(source, encoding); |