Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

fpjson not fully work on ARM 6 years 11 months ago #11189

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 33
  • Thank you received: 0
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.

fpjson not fully work on ARM 6 years 11 months ago #11195

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 33
  • Thank you received: 0
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.

fpjson not fully work on ARM 6 years 11 months ago #11202

  • Avra
  • Avra's Avatar
  • Visitor
  • Visitor

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

fpjson not fully work on ARM 6 years 11 months ago #11207

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 33
  • Thank you received: 0
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.

  • Page:
  • 1