Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #17 from vrvolle/master

allow international characters
  • Loading branch information...
commit 4be6e6a30cddc5d39fdfe545a1a10fabb8675934 2 parents d6e8d82 + 7326455
@joeferner authored
Showing with 6 additions and 6 deletions.
  1. +2 −2 src/executeBaton.cpp
  2. +4 −4 src/utils.h
View
4 src/executeBaton.cpp
@@ -71,9 +71,9 @@ void ExecuteBaton::CopyValuesToBaton(ExecuteBaton* baton, v8::Local<v8::Array>*
// string
else if(val->IsString()) {
- v8::String::AsciiValue asciiVal(val);
+ v8::String::Utf8Value utf8Value(val);
value->type = VALUE_TYPE_STRING;
- value->value = new std::string(*asciiVal);
+ value->value = new std::string(*utf8Value);
baton->values.push_back(value);
}
View
8 src/utils.h
@@ -36,8 +36,8 @@
{ \
Local<Value> __val = OBJ->Get(String::New(KEY)); \
if(__val->IsString()) { \
- String::AsciiValue __asciiVal(__val); \
- VAR = *__asciiVal; \
+ String::Utf8Value __utf8Val(__val); \
+ VAR = *__utf8Val; \
} \
}
@@ -48,8 +48,8 @@
VAR = __val->ToNumber()->Value(); \
} \
else if(__val->IsString()) { \
- String::AsciiValue __asciiVal(__val); \
- VAR = atoi(*__asciiVal); \
+ String::Utf8Value __utf8Value(__val); \
+ VAR = atoi(*__utf8Value); \
} else { \
VAR = DEFAULT; \
} \
Please sign in to comment.
Something went wrong with that request. Please try again.