Recent

Author Topic: (SOLVED) read file unicode!  (Read 4094 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
(SOLVED) read file unicode!
« on: March 23, 2012, 04:37:36 pm »
How do I read a file that contains lines with unicode characters?! (Cyrillic)

My file is as follows! Who knows how to help me?! Because I have only read the second line of my file and split fields between "field1";"field2";"field3";

Code: [Select]
"Barcode";"Barcode_Spaziato";"PPArt";"SPArt";"TPArt";"Nazione";"Stg";"Articolo";"Articolo_Spaziato";"Colore";"CM";"Taglia";"Descrizione";"Origine";"Composizione1";"Composizione2";"Composizione3";"Composizione4";"Composizione5";"Composizione6";"Composizione7";"Composizione8";"Composizione9";"Composizione_Intera"
"969790480072G36M";"969 79048 00 72G 36M";"969";"79048";"00";"RU";"121";"9697904800";"969 79048 00";"72G";"98 cm";"36 месяцев";;"КИТАЙ";"82% нейлон, 18% эластан 12345671";"";"82% нейлон, 18% эластан 12345673";"82% нейлон, 18% эластан 12345674";"82% нейлон, 18% эластан 12345675";"82% нейлон, 18% эластан 12345676";"82% нейлон, 18% эластан 12345677";"";"82% нейлон, 18% эластан 12345679";"82% нейлон, 18% эластан 12345671$#$#82% нейлон, 18% эластан 12345673$#82% нейлон, 18% эластан 12345674$#82% нейлон, 18% эластан 12345675$#82% нейлон, 18% эластан 12345676$#82% нейлон, 18% эластан 12345677$#$#82% нейлон, 18% эластан 12345679$#"
« Last Edit: March 23, 2012, 05:19:12 pm by xinyiman »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1947
Re: read file unicode!
« Reply #1 on: March 23, 2012, 04:52:44 pm »
And where's the problem? Afaics this should work.

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: read file unicode!
« Reply #2 on: March 23, 2012, 04:55:25 pm »
I put in the variables of the squares instead of characters! How do I read files with unicode characters?! For example, how do I read and display each row with the ShowMessage? I need an example!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

joseme

  • Full Member
  • ***
  • Posts: 128
    • Logosoft sistemas
Re: read file unicode!
« Reply #3 on: March 23, 2012, 05:17:25 pm »
Please take a look at http://lazarus.freepascal.org/index.php/topic,16373.msg88713.htm, maybe this is your answer
un aporte a la comunidad:
http://pascalylazarus.blogspot.com/

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: read file unicode!
« Reply #4 on: March 23, 2012, 05:19:01 pm »
Isolved with this http://wiki.lazarus.freepascal.org/Theodp

 :D

Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018