Copied to clipboard

Flag this post as spam?

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


  • David S 3 posts 73 karma points
    Dec 02, 2016 @ 11:54
    David S
    0

    Character encoding issue - ¤ ¤ Currency sign (typography)

    Hi All,

    We've built a document type comprised of umbraco drop down lists with a couple of prevalues. The document type is comprised of a a few umbraco drop downs with different prevalues. In short, we're allowing users to select a horizontal alignment, vertical alignment and banner type. In the razor template we then join all three together to find the path for the partial. e.g. top-middle-short.cshtml the code for this is: VerticalAlignmentType + "-" + HorizontalAlignmentType + "-" + BannerType;

    The error we're getting is: The partial view '/Banners/¤middle-¤left-short' was not found or no view engine supports the searched locations.

    As you can see, the first two drop down types (vertical and horizontal) have the currency sign (https://en.wikipedia.org/wiki/Currencysign(typography) ¤) being injected but the last dropdown list value. I've looked into the database and it's actually stored in there so I suspect it's something to do with the prevalues of the umbraco drop down list. Has anyone else ever experienced this? If so what did you do to solve it? At the moment we're just doing a string replace as a quick hack but i'd like to find out why this is being caused.

    Further info: We're using umbraco as a service and programming on both Windows and Macs (we're seeing the encoding issue on both but only locally not in our azure environments).

    Thanks!

    Dave

  • Gavin Faux 15 posts 158 karma points
    Dec 14, 2016 @ 15:55
    Gavin Faux
    1

    Had this same issue first time we used UaaS migrating an existing site; appears to be an issue with Courier/Umbraco Deploy though don't have exact cause & therefore fix.

    Migrated project was a mutli-site install with domains (and therefore culture) set on child nodes.

    Issue was only present in Drop Down List pre-values.

    We've resolved this but are unsure what the exact fix was as we had a few days of whack-a-mole trying different things to fix various issues.

    Things to try that possibly made a difference (for us anyhow):

    1) In the back office, under Settings -> Languages check that these are correct. In our case the site being migrated was English (United Kingdom) rather than the default English (United States).

    Umbraco will add a default English (United States) on all new projects/installs; could possibly cause an issue - we noticed that all domains got transferred but as en-us rather than en-uk.

    We deleted the unwanted English (United States) language.

    2) Do you have a <globalisation> element in your web.config; we also removed this.

    After this, wiping environment and ensuring en-us language was no longer present in local or remote environment we successfully pushed all content without seeing the issue again (took a couple of attempts, schema synchronisation caused language to be downloaded locally, then uploaded remotely again after deletion).

    The only other thing we did was downgrade target framework from 4.5.2 to 4.5 - don't think it was necessary but did it anyway in effort to get site working as close to using "Umbraco defaults"...

    Hope you find solution!

  • Gavin Faux 15 posts 158 karma points
    Dec 14, 2016 @ 15:58
    Gavin Faux
    0

    Exact config setting we removed was:

    <globalization culture="en-GB" uiCulture="en-GB" />
    
  • David S 3 posts 73 karma points
    Dec 14, 2016 @ 16:04
    David S
    0

    Thanks for your reply Gavin! Our current fix is:

    ExampleString.Replace("¤", string.Empty)
    

    Not amazing but it works for now. I can strip it out of the database manually but it keeps coming back so I'll try the suggested fixes above and get back to you.

  • David S 3 posts 73 karma points
    Dec 14, 2016 @ 16:04
    David S
    0

    Just tried this and we don't have this in our web config so at least we can eliminate this as a possible cause.

  • Gavin Faux 15 posts 158 karma points
    Dec 18, 2016 @ 09:53
    Gavin Faux
    0

    We are also using the latest available Umbraco Deploy package: UaaS.Courier.UI version 3.0.2

    Available from http://nightly.umbraco.org/?container=umbraco-deploy-release or MyGet feed - https://www.myget.org/F/uaas/api/v3/index.json

    This is likely what fixed it in our case.

Please Sign in or register to post replies

Write your reply to:

Draft