NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: jonashogstrom on 2017-01-14 02:46 pm

Title: Updated nwc-conv for 2.75 with UTF8 support?
Post by: jonashogstrom on 2017-01-14 02:46 pm
Hi, I'm using nwc-conv to  convert nwctxt-files to midi, but with the 2.75 upgrade and UTF8 support in NWC, the nwc-conv tool doesn't seem to have been updated (the file version is 2.5). When I generate midi files, any non-ascii character gets garbled.

Is there an updated nwc-conv with UTF8 support to get hold of anywhere?

Best regards, Jonas
Title: nwc-conv now a part of nwc2.exe?
Post by: jonashogstrom on 2017-01-14 02:50 pm
In the change notes for 2.75a, it seems that the normal exe-file now handles conversions, does this mean that nwc-conv is deprecated?
Title: Re: nwc-conv now a part of nwc2.exe?
Post by: jonashogstrom on 2017-01-14 03:10 pm
using trial and error, I now know that nwc2.exe can handle conversion, but it does not successfully handle swedish (non ascii) characters when converting the title from nwctxt to midi.

To reproduce:
create a new song in nwc 2.75a beta 9
set song title to "Testoing ÅÄÖ åäö"
add some random notes
save as c:\temp\song.nwctxt (in text format)
convert using "nwc2.exe -convert c:\temp\song.nwctxt c:\temp\song.mid"

look at file in texteditor of your choice. midi title is now : Testing ÅÄÖ åäö

I tried saving in nwc format and uncompressed format. neither of them convert correctly to midi.

please advice.

Title: Re: Updated nwc-conv for 2.75 with UTF8 support?
Post by: NoteWorthy Online on 2017-01-14 03:17 pm
The nwc-conv tool is nothing but a front-end for the NWC2 program.

Version 2.75 exports MIDI text as utf-8, which is probably causing your problem.

Version 2.75a provides for ANSI text during MIDI export from the Tools, Options, File, ANSI text encoding option.
Title: Re: Updated nwc-conv for 2.75 with UTF8 support?
Post by: jonashogstrom on 2017-01-14 10:42 pm
Thanks for the quick reply. Changing that setting seems to have solved my problem :)

Jonas
Title: Re: Updated nwc-conv for 2.75 with UTF8 support?
Post by: jonashogstrom on 2017-01-15 09:20 am
Shouldn't midi-files always be written with ansi encoding? does the midi format support UTF8?

In this spec, it doesnt say anything at all about support for encoding: http://faydoc.tripod.com/formats/mid.htm
Title: Re: Updated nwc-conv for 2.75 with UTF8 support?
Post by: Rick G. on 2017-01-15 11:45 am
Shouldn't midi-files always be written with ansi encoding?
Some MIDI files have lyrics. Many languages need more than ANSI.
Title: Re: Updated nwc-conv for 2.75 with UTF8 support?
Post by: Flurmy on 2017-01-15 01:08 pm
Some MIDI files have lyrics. Many languages need more than ANSI.
Yes indeed. And I saw many files with the usual problems of code-page.