cqrlog/help/img/h45.png
OH1KH 380544f394 ADIF and UTF8 special charcters
There is a bug in cqrlog adif routines (adif_ver 221) that makes calculates length to adif tags if tag data includes special utf8 characters (like öäå and many others). See isssue #221.
This does not matter as long as exports and imports are used only with cqrlog, or tag data does not have any special utf8 caracters.

Adif specifications do not allow utf8 charcters even when length would be calculated ok.
How ever there is some exeptions in adif ver 3.1.0 that allow those charcters in certain tags whan thag name is added with '_INTL' suffix.

This version changes adif_ver to report 3.1.0 and if special utf8 characters are found intag data checks can tag in question have '_INTL' suffix and if so adds it and calculates length correctly with UTF8length function and uses function utf8copy for copying data.
If tag does not have '_INLT' suffix old routines are used that makes old cqrlog exports backward readable.

Squashed commit of the following:

commit ba82bca19d
Author: OH1KH <oh1kh@sral.fi>
Date:   Mon Nov 18 10:25:48 2019 +0200

    Bugfix after merged

commit 7835baa06b
Merge: d2b6961 6e05004
Author: OH1KH <oh1kh@sral.fi>
Date:   Mon Nov 18 09:54:57 2019 +0200

    merged master

commit d2b6961e37
Author: OH1KH <oh1kh@sral.fi>
Date:   Tue Nov 12 21:05:32 2019 +0200

    Updated help files

commit 7e01d2c1a1
Author: OH1KH <oh1kh@sral.fi>
Date:   Tue Nov 12 08:50:45 2019 +0200

    adif _INTL tags for utf8 strings

    -if string has utf8 special characters and it's tag is allowed to use _INTL suffix by adif specifications then utf8 routines are used to write
    -reads adif tags as before (backward compatible), but if tag has suffix _INTL uses utf8 routines for reading
    -adif_ver is changed to 3.1.0
    -CREATED_TIMESTAMP tag is added to header
    -N1MM import supports now _INTL tags (3: Name, qth, comment)

    Squashed commit of the following:

    commit 800d8d191c09b2b18367bcf224b071bda595f556
    Author: OH1KH <oh1kh@sral.fi>
    Date:   Sun Nov 10 10:27:11 2019 +0200

        Commented out a debug line

    commit e72a9a09a70fb0a57393f4ea3cadfb6adbb14979
    Author: OH1KH <oh1kh@sral.fi>
    Date:   Sun Nov 10 10:25:11 2019 +0200

        Added CREATED_TIMESTAMP to header + bugfix

    commit ad77a56f65009b5c47ddead5bb90a3a732bd9812
    Author: OH1KH <oh1kh@sral.fi>
    Date:   Sat Nov 9 18:59:34 2019 +0200

        This should now follow adif3.1.0 and be able to read old cqrlog exports

    commit ece523cdcd1a7c4c880f9ab6b344ab6cde7a9f60
    Author: OH1KH <oh1kh@sral.fi>
    Date:   Sat Nov 9 12:52:14 2019 +0200

        Added _INTLs for N1MM import. New idea for adif in/export (syntax fix needed)
2019-11-18 10:26:46 +02:00

42 KiB
456x392px