I'm comparing variable with value. The results seems different with languages like I've tried Swedish/English/Dutch/Portugese and Turkish.
<#assign fm_bidBucket>Install</#assign>
<#assign _text><#if fm_bidBucket?trim?lower_case == "both">both-<#elseif fm_bidBucket?trim?lower_case == "install">install-<#else>else-</#if></#assign>
${_text}
Output:
In case of any language: install-
In case of Turkish language: else-
But if we change the condition with upper_case instead of lower case it is working as expected.
<#assign fm_bidBucket>Install</#assign>
<#assign _text><#if fm_bidBucket?trim?upper_case == "both">both-<#elseif fm_bidBucket?trim?upper_case == "install">install-<#else>else-</#if></#assign>
${_text}
Output:
In case of any language: install-
In case of Turkish language: install-
or if we change the content of condition then it is working fine.
<#assign fm_bidBucket>Siddharth</#assign>
<#assign _text><#if fm_bidBucket?trim?lower_case == "both">both-<#elseif fm_bidBucket?trim?lower_case == "siddharth">install-<#else>else-</#if></#assign>
${_text}
Output:
In case of any language: install-
In case of Turkish language: install-
I'm not able to trace the issue why I'm getting different output in case of Turkish locale only and with text "install".
Also, want to know if there is any other character in any other locale working like this.
I've Tried running this code on http://try.freemarker.org/ as well and got the similar response.