use boost.locale for charset conversions instead of iconv
This commit is contained in:
@@ -127,12 +127,11 @@ void Lastfm::Load()
|
||||
{
|
||||
bool first = 1;
|
||||
std::string line;
|
||||
while (getline(input, line))
|
||||
while (std::getline(input, line))
|
||||
{
|
||||
if (!first)
|
||||
w << '\n';
|
||||
IConv::utf8ToLocale_(line);
|
||||
w << line;
|
||||
w << Charset::utf8ToLocale(line);
|
||||
first = 0;
|
||||
}
|
||||
input.close();
|
||||
@@ -171,8 +170,7 @@ void Lastfm::Download()
|
||||
{
|
||||
Save(result.second);
|
||||
w.clear();
|
||||
IConv::utf8ToLocale_(result.second);
|
||||
w << result.second;
|
||||
w << Charset::utf8ToLocale(result.second);
|
||||
itsService->colorizeOutput(w);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user