Skip to content

Instantly share code, notes, and snippets.

@stokito
Last active January 16, 2025 11:11
Show Gist options
  • Save stokito/600e43e4e05e7c89754c8c8f7acf10d7 to your computer and use it in GitHub Desktop.
Save stokito/600e43e4e05e7c89754c8c8f7acf10d7 to your computer and use it in GitHub Desktop.
golang json invalid character 'Â'

Разбор json в Го выдал ошибку invalid character 'Â' поскольку был NBSP пробел который появился при копировании из доков. Найдите его тут:

{
   "user": {
  }
}

Похожие проблемы могут быть ' заменилось на (апостроф). Ещё двойные кавычки могут заменятся на “лапки” что тоже не сразу заметить.

golang/go#57405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment