Skip to content

Commit

Permalink
fixes #388 by using raw bytes utf8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jm committed Aug 15, 2016
1 parent 5610738 commit 941e1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training/stringrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static const int kDefaultOutputResolution = 300;
// Word joiner (U+2060) inserted after letters in ngram mode, as per
// recommendation in http://unicode.org/reports/tr14/ to avoid line-breaks at
// hyphens and other non-alpha characters.
static const char* kWordJoinerUTF8 = "\u2060";
static const char* kWordJoinerUTF8 = "\xE2\x81\xA0"; //u8"\u2060";
static const char32 kWordJoiner = 0x2060;

static bool IsCombiner(int ch) {
Expand Down

0 comments on commit 941e1c4

Please sign in to comment.