e583409
V2EX  ›  Java

İnflammation equalsIgnoreCase Inflammation 为什么相等呢?

  •  
  •   e583409 · Mar 4, 2021 · 1750 views
    This topic created in 2092 days ago, the information mentioned may be changed or developed.
    İnflammation
    Inflammation
    inflammation
    这三个字符串第一个字符 明显不一样 我跟踪了一下代码 发现
    İ 经过 Character.toLowerCase(u1)后就和 I 进过 Character.toLowerCase(u1)一样了,为什么啊?
    3 replies  •  2021-03-12 21:19:12 +08:00
    e583409
    e583409
    OP
    Mar 11, 2021
    1
    技术帖子不活跃吗
    LGA1150
    LGA1150
    Mar 12, 2021
    2
    İ 是突厥语族的大写 i,所以 equalsIgnoreCase 相等没毛病
    e583409
    e583409
    OP
    Mar 12, 2021
    3
    @LGA1150 İ 是突厥语族的大写 i 这么偏门的语法你都懂 你是怎么知道的呢?遇到这个问题 该怎么去分析判断呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3162 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:12 · PVG 12:12 · LAX 20:12 · JFK 23:12
    ♥ Do have faith in what you're doing.