Zum Hauptinhalt gehen

German umlaut characters not displaying properly in view source of the page.?

Kommentare

3 Kommentare

  • Zendesk API User
    Author: mbergmann - 2/6/2021 0:03

    Hi Siva,

    this is most probably happening because of the conversion rules, see here: FirstSpirit Online Documentation - Conversion using format templates

    Michael

    0
  • Zendesk API User
    Author: sivaprasad9394 - 2/6/2021 14:37

    Hi Bergman,

    Thank you for your reply and time.Link is helpful for me.

    Yes conversion rule can be applied for format template.

    Our code is available in the Page Template not in the format template. Attached images properly in order below for reference,

    1) Server Properties:

    2) Page Code:

    3) Page Template Code:

    4) Preview or Page View source in Mozilla:

    For your point of view are we missing any thing else for Umlaut characters to display properly in the view source of the page ?

    In the view of the page it shows proper words with Umlauts in words as described in the previous thread.

    Thanks and Regards,

    Siva

    0
  • Zendesk API User
    Author: mbergmann - 2/6/2021 15:15

    Hi Siva,

    for the INPUT_TEXT the reason is that you are using .convert and / or also convertEntities in the form definition.

    There are different mechanisms in different places which can lead to a conversion:

    • conversion rules (server) where you define „sets of conversions“ telling which characters should be converted to which output according to the two conversion „levels“ (convert and quote)
    • Output channel definition where you assign one of those rulesets to each output channel (background: XML or PDF might need different conversions than HTML, and even HTML may differ depending on the encoding used).
    • Format templates‘ output channels responsible for applying conversion to formatted content in a DOM (be aware that also the p format which is the default for DOM is a format template)
    • the convertEntities attribute of input components: none, standard (will apply the channel‘s conversion rule‘s „convert“ part), quote (will apply its convert and quote part). I generally advise against using this nowadays because it will result in a „very early“ conversion using the output channel‘s default conversion rule from which there is „no way back“ in cases you need different conversions. And to have consistent code throughout the project, I always recommend NOT using convertEntities at all but .convert/.convert2 in the output channel instead (see next point)
    • during the output using $CMS_VALUE you can use .convert (applying the „convert“ part of the  channel‘s rule) or .convert2 (applying the “convert“ and „quote“ part). There is also the possibility to apply another than the channel‘s default conversion ruleset using .convert[2]("RULE_NAME")

    It‘s important to have all the places configured consistently according to your desired output format/behaviour. You should also make sure that the encoding is configured correctly for the languages (in server manager).

    Michael

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.