Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

allow international characters #17

Merged
merged 1 commit into from

2 participants

@kontrafiktion

should solve #16

@joeferner joeferner merged commit 4be6e6a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 10, 2013
  1. switch to utf8 in insert and select

    Victor Volle authored
This page is out of date. Refresh to see the latest.
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; \
} \
Something went wrong with that request. Please try again.