[fpc-devel] "Value" chunk encoding in RSJ files

Maxim Ganetsky ganmax at narod.ru
Thu Jul 14 23:05:06 CEST 2016


14.07.2016 16:49, Mattias Gaertner пишет:
> On Thu, 14 Jul 2016 16:32:58 +0300
> Maxim Ganetsky <ganmax at narod.ru> wrote:
>
>> 14.07.2016 16:05, Mattias Gaertner пишет:
>>> On Thu, 14 Jul 2016 15:48:23 +0300
>>> Maxim Ganetsky <ganmax at narod.ru> wrote:
>>>
>>>> Hello.
>>>>
>>>> I noticed that in RSJ file when resource string has e.g. Cyrillic
>>>> symbols "Value" chunk doesn't seem to have UTF-16 encoding (but it
>>>> should according to comment in cresstr.pas).
>>>>
>>>> Example for 'Тест' resource string (originally encoded in UTF-8):
>>>
>>> Did you tell FPC that your source is encoded in is UTF-8?
>>
>> I created standard Lazarus application, so? I guess, no.
>>
>> The main question is that we need to generate RSJ-compatible output
>> ourselves from IDE. What should we write to this chunk then?
>
> UTF-16.

Done in r52688.

-- 
Best regards,
  Maxim Ganetsky                  mailto:ganmax at narod.ru



More information about the fpc-devel mailing list