Unicode strings in .Net with Hebrew letters and numbers

前端 未结 4 1355
梦如初夏
梦如初夏 2021-02-04 15:38

There is a strange behavior when trying to create string which contains a Hebrew letter and a digit. The digit will always be displayed left to the letter. For example:

<
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-04 15:59

    string A = "\u05E9"; //A Hebrew letter
    string B = "23";
    string AB = B + A; // !
    textBlock1.Text = AB;
    textBlock1.FlowDirection = FlowDirection.RightToLeft;
    //Ouput Ok - A is left to B as intended.
    

提交回复
热议问题