Commit 608f1f7
committed
Fix unicode characters in strings between Lua -> Java and Java -> Lua
This is such a major hack in my opinion but it works.
The problems seems to be due to the fact that Java uses Modified UTF-8 which limits characters to three bytes (instead of four) while Lua uses normal UTF-8 so there's a small mismatch. This change will simply check if the string needs fixing and instead of passing the string directly through Java/JNI it will pass the raw bytes and construct a string from them1 parent 192daaa commit 608f1f7
1 file changed
+53
-1
lines changedLines changed: 53 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
203 | 230 | | |
204 | 231 | | |
205 | 232 | | |
| |||
375 | 402 | | |
376 | 403 | | |
377 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
378 | 415 | | |
379 | 416 | | |
380 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
381 | 433 | | |
382 | 434 | | |
383 | 435 | | |
| |||
0 commit comments