Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

[Name,fallback=] doesn't work if fallback is Unicode string
  • Vote Up0Vote Down temmokantemmokan
    Posts: 24Sendy user

    Hello,

    I am sending newletters in Russian.

    The template

    [Name,fallback=]

    doesn't work if I specify non-Latin (Unicode, specifically) string as fallback. The resulting template is simply left as is.

    This is extremely inconvenient and I would appreciate fixing this behaviour. I can't use Latin-based fallback strings, they will look weird from recipients' viewpoint.

    Example of Russian template tried

    [Name,fallback=подписчик]

    (using Russian for 'subscriber')

    Thanks.

  • 9 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    I'll look into that. Thanks.

  • Vote Up0Vote Down ferenceference
    Posts: 3Sendy user

    This happens because sendy uses str_replace to replace tags to fallbacks, and this function does not work properly with multibyte strings.

    Possible solution: migrate str_replace with preg_replace since there is no multibyte version of str_replace function, and preg_replace is the fastest workaround here in terms of performance.

    P.S. I believe there are also problems when a user specifies a multibyte value for the custom field.

  • Vote Up0Vote Down mandelbellmandelbell
    Posts: 5Sendy user

    I am experiencing this issue as well. Is there a solution to it?

  • Vote Up0Vote Down oshaosha
    Posts: 14Sendy user

    Can someone pls HELP. When i subscribe through gravity forms, email is captured but not the name. WHY?

  • Vote Up0Vote Down _Maxim__Maxim_
    Posts: 6Sendy user

    The Russian letters in fallback is still ignored. Any news on this issue? However if the value in additional field is in Russian it is substituted.

    Moreover the additional filed is not substituted if its name contains Russian letters.

  • Vote Up0Vote Down SNorSNor
    Posts: 1Sendy user

    Same problem with hungarian letters.

  • Vote Up0Vote Down dimscorpdimscorp
    Posts: 5Sendy user

    Do you have any plans for fixing this? Turns out, that we are unable to use the core functions for Russian language.

  • Same problem with Vietnamese. Do you have any plan to fix?

  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    This is now fixed in the latest version of Sendy (v2.1.1) → https://sendy.co/get-updated#211

This discussion has been closed.
All Discussions