Skip to main content

Topic: Updated nwc-conv for 2.75 with UTF8 support? (Read 1526 times) previous topic - next topic

Updated nwc-conv for 2.75 with UTF8 support?
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

nwc-conv now a part of nwc2.exe?
Reply #1
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?

Re: nwc-conv now a part of nwc2.exe?
Reply #2
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.


Re: Updated nwc-conv for 2.75 with UTF8 support?
Reply #3
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.

Re: Updated nwc-conv for 2.75 with UTF8 support?
Reply #4
Thanks for the quick reply. Changing that setting seems to have solved my problem :)

Jonas

Re: Updated nwc-conv for 2.75 with UTF8 support?
Reply #5
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

Re: Updated nwc-conv for 2.75 with UTF8 support?
Reply #6
Shouldn't midi-files always be written with ansi encoding?
Some MIDI files have lyrics. Many languages need more than ANSI.
Registered user since 1996

Re: Updated nwc-conv for 2.75 with UTF8 support?
Reply #7
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.