Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mads Jørgensen 74 posts 226 karma points
    Nov 15, 2013 @ 08:30
    Mads Jørgensen
    0

    Special characters in i.e. dictionary names

    Hey,

    Got challenged trying to version control config files named by dictionary names containing special chars i.e. æøå in danish.

    Could uSync perhaps use the same rewrite settings as Umbraco does for URL's in naming convetions?

    I'm well aware that if I create two dictionary items (køb and koeb) both would be named koeb.config in the uSync export. Further more, to be honest, I don't know how to get around that!

    The biggie is, that I'd like to name dictionary items in Danish for danish editors to grap, but it crashes my HG repo on i.e. a mac, or a russion PC due to character encoding differenses.

    And isn't it just good costume to keep special chars out of file names :-)

    Hope to get some feedback on this, as I for now just disabled the dictionary part of usync... And I miss it.

    BTW... This is a freckin' awesome plugin!

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Nov 17, 2013 @ 11:52
    Kevin Jump
    0

    Hi

    I am the first to admit, i'm not that great with the multilingual stuff, it's not something i've personally had cause to use - just so i understand,

    uSync only writes out the top level file for dictionary items because the export includes all child items. so the path is just to that top file name.

    at the moment it just takes the name and that can have encoded characters in it ?

    i've just done some experimentation with Umbraco default CleanStringForSafeFileName and CleanStringForSafeAlias function and that doesn't remove the encoded characters - so i still have a køb.config file.

    not sure if you are aware of other clean functions already in umbraco ?

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Nov 17, 2013 @ 12:11
    Kevin Jump
    100

    OK - ignore that. 1.5.4 does some conversion of the file name to ASCII - let me know if this works for you

  • Mads Jørgensen 74 posts 226 karma points
    Nov 17, 2013 @ 13:46
    Mads Jørgensen
    0

    Kevin... You da man! For real!

Please Sign in or register to post replies

Write your reply to:

Draft