Culture is not supported. (Parameter 'name')\n\u0002� is an invalid culture identifier.

  • liunx服务器   netcore 发送带中文 http请求报错
  • 解决方案,设置liunx 字符集为utf-8
  • 安装中文UTF8中文字符集
    sudo locale-gen zh_CN.UTF-8
    
    再次 列出当前系统安装的字符集:
    root@odroid ~# locale -a
    C
    C.UTF-8
    POSIX
    zh_CN.utf8
    root@odroid ~# 
    root@odroid ~# vim /etc/profile #尾行追加
    export LANG='zh_CN.UTF-8'
    
    
    reboot #重启系统

     liunx 系统get 请求传递时间参数的时候。 会出现上午下午的问题。 这可能跟设置了中文字符集相关。 暂行解决方法 是传递参数时候使用datetime.tostring("yyyy-MM-dd")进行格式化。

posted @ 2020-03-13 17:08  雨V幕  阅读(1072)  评论(0编辑  收藏  举报