Announcement

Collapse
No announcement yet.

Polish letters in RCfiles

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Polish letters in RCfiles

    I want to add support for the Polish language in my app. I use RCfiles to store strings for my forms.
    Now i have got my polish text strings created in Word but Word has added line feeds because some strings are rather long.
    I would like to be able to edit the file but if I import it in UltraEdit the polish special letters get converted.
    How do I best edit this kind of filer with special characters?

    Krister


    ------------------

  • #2
    Typically I use console file manager FAR ( www.rarsoft.com ) to edit simple plain text.
    FAR is similar NC, but much powerful.
    BTW, in F4 (edit) you can set Windows (ANSI) or DOS (OEM) charset.

    I guess that you need Polish ANSI.
    Like rule, text editors use default regional settings (for example, Notepad).
    That's why (I hope) should wook following --
    1) Set Polish Regional settings, reboot.
    2) Edit in Notepad.




    ------------------
    E-MAIL: [email protected]

    Comment


    • #3
      Krister,

      Try this:
      Code:
      #COMPILE EXE
      
      FUNCTION PBMAIN() AS LONG
          OPEN "SOURCE.TXT" FOR BINARY AS #1
          buffer$ = STRING$(LOF(1), 0)
          GET 1,,buffer$: CLOSE #1
          REPLACE CHR$(10) WITH "" IN buffer$
          OPEN "TARGET.TXT" FOR BINARY AS #1
          PUT #1,,Buffer$:CLOSE #1
      end function
      That should fix your line feed problem.

      ------------------
      -Greg
      -Greg
      [email protected]
      MCP,MCSA,MCSE,MCSD

      Comment


      • #4
        Semen,

        Why do you always post an answer RIGHT before I post mine?

        ------------------
        -Greg
        -Greg
        [email protected]
        MCP,MCSA,MCSE,MCSD

        Comment


        • #5
          Picture me Waving my "Unicode for PB/DLL" Flag about here!

          Couldn't help myself

          I finally go PB to output data into a file with a Kanji filename!! (I thought it was a special moment anyway)




          ------------------

          Paul Dwyer
          Network Engineer
          Aussie in Tokyo
          (Paul282 at VB-World)

          Comment

          Working...
          X