How do I make a Null character in Kotlin

These options will work:

  • '\u0000' (Unicode escape syntax, as described in the docs)
  • 0.toChar() (conversions are optimized and have no function call overhead)
  • import java.lang.Character.MIN_VALUE as nullChar, then use nullChar (renaming import)

Starting from Kotlin 1.3, this seems to be the straightforward option:

  • Char.MIN_VALUE

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)