Skip to content

Commit

Permalink
Merge pull request #17 from vrvolle/master
Browse files Browse the repository at this point in the history
allow international characters
  • Loading branch information
joeferner committed Jan 10, 2013
2 parents d6e8d82 + 7326455 commit 4be6e6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/executeBaton.cpp
Expand Up @@ -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);
}

Expand Down
8 changes: 4 additions & 4 deletions src/utils.h
Expand Up @@ -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; \
} \
}

Expand All @@ -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; \
} \
Expand Down

0 comments on commit 4be6e6a

Please sign in to comment.