Statuses can't be posted with non-romanized tags
Hello everyone
One of my users who posts in Russian noticed he had errors when using tags like #енот
on desktop or on a mobile app. screenshot
I tried it myself and can confirm that it is a problem with Cyrillic but also other kind of non-romanized scripts, like #もしもし
would not work either.
I updated this morning from b4f3c168 to 6a4201e0 (and now again to 55ac38c1).
Here's what I get in the logs
Nov 11 17:28:53 SpaceCore mix[4501]: 17:28:53.474 request_id=FdYokxtp71ARcVQAAAdS [error] Internal server error: %Jason.EncodeError{message: "invalid byte 0xE3 in <<60, 115, 112, 97, 110, 32, 99, 108, 97, 115, 115, 61, 34, 104, 45, 99, 97, 114, 100, 34, 62, 60, 97, 32, 100, 97, 116, 97, 45, 117, 115, 101, 114, 61, 34, 51, 50, 34, 32, 99, 108, 97, 115, 115, 61, 34, 117, 45, 117, 114, ...>>"}
Nov 11 17:28:53 SpaceCore mix[4501]: 17:28:53.478 [error] #PID<0.1756.0> running Pleroma.Web.Endpoint (connection #PID<0.1755.0>, stream id 1) terminated
Nov 11 17:28:53 SpaceCore mix[4501]: Server: pl.im-in.space:80 (http)
Nov 11 17:28:53 SpaceCore mix[4501]: Request: POST /api/v1/statuses
Nov 11 17:28:53 SpaceCore mix[4501]: ** (exit) an exception was raised:
Nov 11 17:28:53 SpaceCore mix[4501]: ** (Jason.EncodeError) invalid byte 0xE3 in <<60, 115, 112, 97, 110, 32, 99, 108, 97, 115, 115, 61, 34, 104, 45, 99, 97, 114, 100, 34, 62, 60, 97, 32, 100, 97, 116, 97, 45, 117, 115, 101, 114, 61, 34, 51, 50, 34, 32, 99, 108, 97, 115, 115, 61, 34, 117, 45, 117, 114, ...>>
Nov 11 17:28:53 SpaceCore mix[4501]: (jason) lib/jason.ex:199: Jason.encode_to_iodata!/2
Nov 11 17:28:53 SpaceCore mix[4501]: (pleroma) deps/postgrex/lib/postgrex/type_module.ex:897: Pleroma.PostgresTypes.encode_params/3
Nov 11 17:28:53 SpaceCore mix[4501]: (postgrex) lib/postgrex/query.ex:75: DBConnection.Query.Postgrex.Query.encode/3
Nov 11 17:28:53 SpaceCore mix[4501]: (db_connection) lib/db_connection.ex:1148: DBConnection.encode/5
Nov 11 17:28:53 SpaceCore mix[4501]: (db_connection) lib/db_connection.ex:1246: DBConnection.run_prepare_execute/5
Nov 11 17:28:53 SpaceCore mix[4501]: (db_connection) lib/db_connection.ex:1342: DBConnection.run/6
Nov 11 17:28:53 SpaceCore mix[4501]: (db_connection) lib/db_connection.ex:540: DBConnection.parsed_prepare_execute/5
Nov 11 17:28:53 SpaceCore mix[4501]: (db_connection) lib/db_connection.ex:533: DBConnection.prepare_execute/4