Page 5 of 9
Re: My new documentation site and about where I'm heading :)
Posted: Wed Sep 27, 2017 8:39 am
by Allanon
Thank you guys for the interest
@jPV
The library is not yet published, I will publish it as soon as I've finished the Hasteroid game test to check for errors, bugs and missing features
Re: My new documentation site and about where I'm heading :)
Posted: Sat Oct 07, 2017 9:18 am
by peceha
Hi Allanon,
thank You for the library - have not needed until now
so I decided to give it a try.
When I start the example program and choose mp3 file I got an error:
Error in line 351 (ID3Tag.hws): Invalid UTF-8 sequence encountered!
and this is the highlighted line:
Is there something wrong with my mp3 ? (it happens with every mp3 I have testest)
Thanks.
Re: My new documentation site and about where I'm heading :)
Posted: Sat Oct 07, 2017 11:04 am
by SamuraiCrow
It's probably complaining about Unicode. Try to switch to the appropriate code page for the older versions of Hollywood. Maybe Allanon didn't upgrade before writing this.
Re: My new documentation site and about where I'm heading :)
Posted: Sat Oct 07, 2017 12:44 pm
by peceha
Could you explain a little bit more where to switch?
I changed:
File > IDE settings > save format
to
ISO-8859-1 and resaved both files (ID3Tag and tagReader) but it didn't change anything.
Re: My new documentation site and about where I'm heading :)
Posted: Sun Oct 08, 2017 11:23 am
by Allanon
Hi,
I'm not too into UTF8 encoding stuff, the library was developed and tested on Hollywood 6, I've just bought the upgrade but not yet received.
As soon as I will get it I'll try to check it out.
Maybe you could try to use the SetDefaultEncoding() command.
At line 351 there is a ReadString() command used to parse the id3 header frames, the error occurs during the reading operation.
Looking at the new manual the
ReadString() command accepts a new encoding parameter, you may try temporary fix it adding the encoding as third parameter:
Code: Select all
s$ = ReadString(id, length[, encoding])
In few days Andreas should send me the upgrade
Let me now if you fixed the issue
Re: My new documentation site and about where I'm heading :)
Posted: Sun Oct 08, 2017 2:37 pm
by peceha
Unfortunately, adding #ENCODING_UTF8 to
ReadString() is not quite helping:
there is no error anymore at line 351 but the same error jumps in but few lines away, at line 379 (this is also
ReadString() command but #ENCODING_UTF8 parameter doesnt help here).
I tried with SetDefaultEncoding(#ENCODING_UTF8) but no luck.
Looks like I'll wait for your fix
.
Thanks
Re: My new documentation site and about where I'm heading :)
Posted: Sun Oct 08, 2017 4:03 pm
by Allanon
Ok, let's hope Andreas will send my HW 7 copy as soon as possible
TBH I'm a bit scared about all this UTF-8 stuff
Re: My new documentation site and about where I'm heading :)
Posted: Sun Oct 08, 2017 7:13 pm
by peceha
So... I have it working
this is what must be added to almost every function handling strings:
Thanks
Re: My new documentation site and about where I'm heading :)
Posted: Sun Oct 08, 2017 8:40 pm
by Allanon
Great! and thank you!
Is a good hint for the next release
Re: My new documentation site and about where I'm heading :)
Posted: Sun Oct 08, 2017 10:56 pm
by lazi
peceha wrote:
this is what must be added to almost every function handling strings:
No need to bother all string functions. Just insert this line to the beginning of the script:
Code: Select all
@OPTIONS {Encoding = #ENCODING_ISO8859_1}
Then everything is working as on pre 7.0.