Skip to content

Commit

Permalink
Merge pull request #954 from NativeScript/pete/fix-console-numbers
Browse files Browse the repository at this point in the history
fix(new console): print messages in utf-8 encoding
  • Loading branch information
petekanev authored Feb 22, 2018
2 parents 58f95aa + 433597b commit 1a73c56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void V8LogAgentImpl::EntryAdded(const std::string& text, std::string verbosityLe
auto nano = std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::system_clock::now());
double timestamp = nano.time_since_epoch().count();

auto textString16 = String16(tns::Util::ConvertFromUtf8ToProtocolUtf16(text));
auto textString16 = String16(text.data());

auto logEntry = protocol::Log::LogEntry::create()
.setSource(protocol::Log::LogEntry::SourceEnum::Javascript)
Expand Down

0 comments on commit 1a73c56

Please sign in to comment.