zoukankan      html  css  js  c++  java
  • tomcat chinese miscode and chinese input in IDEA

    JAVA_OPTS="$JAVA_OPTS -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF
    -8 -Duser.language=zh_CN -Dsun.jnu.encoding=UTF-8"


    urlencode 两次----


    http://jingyan.baidu.com/article/eae078278eb6d91fec548533.html  -xP 字体---》ubuntu 下

    idea 中文input.

    解决方法

    在IDEA的bin目录下的idea.sh文件的前面加上

    XMODIFIERS="@im=ibus"
    #XMODIFIERS="@im=fcitx"
    export XMODIFIERS
    export QT_IM_MODULE="ibus"

    # ---------------------------------------------------------------------
    # Run the IDE.
    # --------

    idea/64.vmoptions:

    -Dfile.encoding=UTF-8

    `Gtk-WARNING **: Locale not supported by C library. ` when starting apps from the commandline

    8 down vote accepted

     

    First make sure your library language is installed

    sudo apt-get install language-pack-en-base,

    for example.

    Then, as superuser, shorten the work by allowing Ubuntu to automatically configure them:

    sudo dpkg-reconfigure locales
    

    Check your setup, if it's correct then good. But if you have the LANG= or LANGUAGE= settings blank, run this in command line:

    locale -a
    

    Which generates the locales installed and available to you.

    Choose the locale from the output generated that fits your situation, and export that setting to replace your locales, for example:

    export LC_ALL="en.utf-8"
    

    For manual installation use export to set locale by hand which will manually install custom locales, first run the set up as above.

    Then, say you want to install "en_us-8" for language but have need for another locale for NUMERIC and TIME, you may wish to use "en_NZ.utf-8" (remember: these are case-sensitive) or LANGUAGE="en_GB.utf-8" and NUMERIC="en.dk.ISO-8859-15". Traveling to New Zealand, I could change the locale LANGUAGE="en.NZ". For Germany, I would just need to install the locales pkg for it and input, in terminal, like the examples below:

    export LC_ALL="en_US"
    export LANG="en_US"
    export LANGUAGE="en_NZ"
    export C_CTYPE="en_US"
    export LC_NUMERIC=
    export LC_TIME=en"en_US"
    

    LC_ALL= may remain empty.

  • 相关阅读:
    基于小脚丫DDS 调频 调幅 调相 切换波形 AD5601输出模拟波形
    spi 10方式编写
    VGA colorbar显示
    hostname
    让CentOS能用yum自动安装rar和unrar
    Centos系统使用代理上网时 yum的代理设置
    【转】uvm 与 system verilog的理解
    跟我一起学习VIM
    gVim 配置方案 采用Vundle管理插件
    在 Ubuntu 16.04 中安装谷歌 Chrome 浏览器
  • 原文地址:https://www.cnblogs.com/SZLLQ2000/p/5768932.html
Copyright © 2011-2022 走看看