× CodeTyphon Cross-Build Development, discussions and problems

Question fpjson not fully work on ARM

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #11189 by AntonyRF
fpjson not fully work on ARM was created by AntonyRF
Hello! My native language is Russian and i in every project use UTF-8 text with Russian characters. But i have trouble with fpjson =( For example:
var
  jData: TJSONData;
  jObject: TJSONObject; 
  Buffer: String;
begin
    jData := GetJSON(UTF8String('{"test", "Тест мой"}')); // Translate as "My test"

    jObject := TJSONObject(jData);
    Buffer:= jObject.Get('test');   
end; 
Variable "Buffer" contains is 'Тест мой' - it's alright. But if i build my project with Raspberry 2 i have are trouble, "Buffer" contains is '???? ???' And after adding "Buffer" in Watch Window, i setting view as Memory Dump and i see:
3f 3f 3f 3f 20 3f 3f 3f 00 

FcUTF8 - does not affect the result. How to solve this problem? I love Russian language =(

Please Log in or Create an account to join the conversation.

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #11195 by AntonyRF
Replied by AntonyRF on topic fpjson not fully work on ARM
Its do not work if locale remove from system. What alternative run without locale?

Please Log in or Create an account to join the conversation.

  • Avra
  • Visitor
  • Visitor
3 years 11 months ago #11202 by Avra

Please Log in or Create an account to join the conversation.

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #11207 by AntonyRF
Replied by AntonyRF on topic fpjson not fully work on ARM
This not fully work for this:
{
    some1: "Привет",
    {
        some2: "Привет"
    }
}
If I call Find ('some2'). AsString, I get the string '??????' =( For some1, everything is fine

Please Log in or Create an account to join the conversation.