-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need example of napi_get_value_string_utf8 #83
Comments
Is it that you would like an example to get started ? Or would you like to volunteer to add this ? |
I'm also intrested in this method api. I shall do my best. Trying to give req.header["user-agent"] to the c native code : ) |
An example to get started would be good. |
I dont understand it too... i struggle with segmentation fault! |
JS
C Code:
Output: |
Note!
|
Believe you can also use NAPI_AUTO_LENGTH if it is NULL terminated and you don't want to specify the size @Misery42 any chance you want to submit a PR for an example covering this? |
* fixes nodejs#83 * NAPI example for working with UTF-8 encoded strings
How to create utf8 string from a argument
The text was updated successfully, but these errors were encountered: