如何在java脚本中解码这样的字符串? 我知道默认使用utf-8,因此我尝试的所有解码器(包括btoa)都告诉我字符串编码不正确。
字符串:
eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NDM1NTczMzYsInVzZXJfbmFtZSI6IjJiNmNhOWRmLWM2MDMtNDc0NC1iMTVhLWRlZTUxNjdhMjdjYyIsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiJdLCJqdGkiOiI5NjE0MTc3NS1iNGI1LTRmYTMtYTMxYy00MDUxZDIxNGRlODMiLCJjbGllbnRfaWQiOiI2MDRhNjEyZC1jOWViLTQ1MjItODY2ZS1mOTE3ZDc2ZjI3MzAiLCJzY29wZSI6WyJBbGwiXX0.E-0Ouk6lW0tNJ_zEWDPfnTP7rGFfob5GrfxdR52KhTn2p1avNvaVrbSOWS_vEYl2xfHp9MEtDETzIKd8cWMXWdmAoc6F3ftNg2KVdK23ZHIrHr2Xj16FfV1nPwkcNtIdnaU_V4xQnCXgltaH91WYkmmAfZLPH9EOO9XovVeBJBIrTmaOc5FUSF3G859QxB1iaoN-DR14Pvm2oh6zTaDMJ8v9DRD2043yP3cZGwQItTjqf-UZ-FyAeG4IXMEdCgwQbZhV_fJdrNegKnJRh_ZJN2GHJgEEr-2b4Wg2DTtcY31XftNw-mbK0I3JYAg2DjxK9h_5XLmYJv19eqL6DFJm6w