Lyrik Project Forum

 
Please login or register.

Author Topic: bad character encoding (Lyrik v 1.3.2)  (Read 613 times)

nb000

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
bad character encoding (Lyrik v 1.3.2)
« on: May 15, 2011, 08:17:03 PM »
Summary:
Some of the Hungarian accented characters are not displayed correctly.

Details:
The characters used also in the Hungarian language ő and ű are not displayed correctly.
If I saved the .lrc file in iso-8859-2 only these 2 chars were wrong, see 1st attachment.
If I daved in utf-8, all accented chars were wrong, see 2nd attachment.
One of the letters (ű) is in 3rd attachment in very big size, to see the difference.
The correct is on the left, the incorrect on the right.

I also have an idea what could cause this...
If I check the details of the font settings (attachment 4 and attachment 5),
I see that the font is set to "western" write system (mark 2.).
I can change it to "eastern" (which would be correct for Hungary),
but after I click OK and Apply, this settings is forgotten.
« Last Edit: May 15, 2011, 08:19:13 PM by nb000 »

Magus

  • Administrator
  • Hero Member
  • *****
  • Posts: 126
  • Karma: 4
    • View Profile
    • Lyrik Project
Re: bad character encoding (Lyrik v 1.3.2)
« Reply #1 on: May 16, 2011, 02:32:53 AM »
Hello,

That's odd, Unicode should do the trick. Charset is still used as compatibility for ASCII text only, that's why lyrik does not use it.

Please check this:
1 - If the file Lyrik.Error.log exists in Lyrik install dir (C:\Program Files\Lyrik), and post it.
2 - LRC files are ASCII only (didn't find any standard for it, so I assume unicode is not supported), try using LRK instead.

Could you give me an title example? It would be easier for debugging.

Thanks for reporting it,
Willian

nb000

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: bad character encoding (Lyrik v 1.3.2)
« Reply #2 on: May 16, 2011, 09:29:30 PM »
Artist: István, a király
Title: Szállj fel szabad madár
In PS-Pad (my favorite text editor) I had to choose UTF-16 LE as character encoding to get it to work.
When I selected this, it also works in both .lrc and .lrk
 :good:

I also noticed now,
that when saving a text as .lrc
it simply leaves out the above mentioned two characters (ő and ű).
 :skull:
« Last Edit: May 16, 2011, 09:39:34 PM by nb000 »

Magus

  • Administrator
  • Hero Member
  • *****
  • Posts: 126
  • Karma: 4
    • View Profile
    • Lyrik Project
Re: bad character encoding (Lyrik v 1.3.2)
« Reply #3 on: May 19, 2011, 04:31:52 AM »
Hello again,

I did some search and found out a way to treat charset even when with unicode, can you test it for us?
The idea is to use custom charset from lrk when available and from text-dialog when not specified.

Download: lyrik_133_beta1.exe.

See ya,

nb000

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: bad character encoding (Lyrik v 1.3.2)
« Reply #4 on: May 22, 2011, 06:59:33 PM »
I have a good news and a bad one.
the good: it works when saving in .lrk format.
the bad: it still does not work, when saving in .lrc format (leaves out the ő and ű chars).

It still works when converting the .lrc to UTF-16 LE encoding.

Magus

  • Administrator
  • Hero Member
  • *****
  • Posts: 126
  • Karma: 4
    • View Profile
    • Lyrik Project
Re: bad character encoding (Lyrik v 1.3.2)
« Reply #5 on: May 22, 2011, 07:27:01 PM »
Strange, it should work. Did you change the charset in font-dialog? (after beta-version install).
Please check the charset codes (system and last lyric) in the debug window (main menu -> debug).

Thanks,

nb000

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: bad character encoding (Lyrik v 1.3.2)
« Reply #6 on: May 23, 2011, 08:07:14 PM »
I forgot it, but today I set the charset in the dialog.
It gets saved.
Both charsets are 238.

 

Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
ModernDark64 design by BlocWeb