Tag:Chinese

  • Installing composer in MAC environment

    Time:2020-11-23

    You can declare the dependent external libraries in your project, and composer will help you install these dependent libraries. Composer can also manage projects.Generally speaking, composer is a PHP based version control and project management tool. Official website:getcomposer.org/English image:https://packagist.orgChinese official website:www.phpcomposer.com/Chinese image:pkg.phpcomposer.com/ Install composer There are only two things you need to do to install […]

  • Conversion of mon type time format in Oracle and resolution of invalid month and year error

    Time:2020-11-23

    Time conversion NLS in different systems_ DATE_ Usage of language: English: NLS_ DATE_ LANGUAGE=AMERICAN Japanese: NLS_ DATE_ LANGUAGE = Japanese Chinese: NLS_ DATE_ LANGUAGE = SIMPLIFIED CHINESE   Summarize the solution:   select TO_CHAR(to_date(’23-JUN-99′,’dd-MON-YY’,’NLS_DATE_LANGUAGE=AMERICAN’),’YYYY-MM-DD’) from dual;

  • ‘ascii’ codec can’t encode characters in position

    Time:2020-11-23

    ‘ascii’ codec can’t encode characters in position problem Error in running Python 3 script output to command line in Ubuntu Solution Add Lang or LC_ All is set to en_ US.utf8 Or zh_ CN.utf8 List current settings [email protected]:~# locale LANG=zh_CN.UTF-8 LANGUAGE= LC_CTYPE=”en_US.UTF-8″ LC_NUMERIC=”en_US.UTF-8″ LC_TIME=”en_US.UTF-8″ LC_COLLATE=”en_US.UTF-8″ LC_MONETARY=”en_US.UTF-8″ LC_MESSAGES=”en_US.UTF-8″ LC_PAPER=”en_US.UTF-8″ LC_NAME=”en_US.UTF-8″ LC_ADDRESS=”en_US.UTF-8″ LC_TELEPHONE=”en_US.UTF-8″ LC_MEASUREMENT=”en_US.UTF-8″ LC_IDENTIFICATION=”en_US.UTF-8″ LC_ALL=en_US.UTF-8 List […]

  • Django Chinese character interception

    Time:2020-11-21

    It’s in DjangotruncatewordsandsliceTwo template filters can be used for character interception.truncatewordsChinese is not supported, so in general, Chinese characters are intercepted withsliceThat’s fine. But there are still differences between the two. For example, some developers mentioned the followingA little bit。 Then, there is the following solution. Put it here for backup. (The source of the […]

  • Old Android mobile phone installed with Ubuntu as low power server

    Time:2020-11-21

    Old Android phone installed with UbuntuLow power server To make a living I’ve been thinking about a low-power device recentlylinuxServer, only run some small programs, such asPythonWritten crawler or scheduled task. I read it on the Internet, what raspberry pie? It costs two or three hundred yuan for one set, which is not cost-effective. It […]

  • Why is there no Chinese after Ubuntu is installed?

    Time:2020-11-18

    Series articles: Python saves the file JSON Why is there no Chinese after Ubuntu is installed? Many people will ask why there is no Chinese option after I install Ubuntu. Let me tell you how to operate it.First turn on the Ubuntu settings (the gear in the upper right corner), or find the settings directly […]

  • JS determines whether the string contains Chinese

    Time:2020-11-17

    /***Determine whether the string contains Chinese */function checkStringIsChinese(str) {   var pattern = new RegExp(“[\u4E00-\u9FA5]+”);   if (pattern.test(str)) {     return true;   }   return false;}  

  • Summary of JAVA Chinese garbled code

    Time:2020-11-17

    1. HTML garbled code   2. JSP garbled codeAdd at the beginning of the page   3. XMLHttpRequest garbled   4. Servlet garbled codeAdd these two sentences to the method request.setCharacterEncoding(“utf-8”); response.setContentType(“text/html;charset=utf-8”);   5. Chinese notes are garbledCause: the default encoding for text file encoding in eclipse is GBK solve: Eclipse – > right click […]

  • Solve the problem of using input method to input in the react input box

    Time:2020-11-15

    problem When using react to bind the onchange method of the input input box, if the Chinese input method (or other input methods) is used, there will be a problem: while inputting Pinyin, the onchange method has been triggered. As follows, the onchange method has been triggered several times in the input process. If onchange […]

  • Reordering method of SQL

    Time:2020-11-11

    — Id Name Course Score –1001 Li Si English 100 –1007 Wang Wu mathematics 30 –1004 Li Si mathematics 62 –1005 Li Siyu 83 –1006 Wang Wu Chinese 55 –1008 three English 64 –1003 Wang Wu English 56 –1002 Zhang San mathematics 93 –1000 copies of three languages 81 –First sort according to the name […]

  • To solve the problem that Chinese in the image path can not be displayed normally under JSP

    Time:2020-11-10

    For example: < img SRC = / PIC / lupload / img ICBC upload. JPG “/ >, the image path is correct, and it can be opened normally when placed in a separate HTML page, but no image is displayed in JSP The reason is that uriencoding is not configured in Tomcat. Modification method: At […]

  • Alibaba cloud arms helps “call to read” to unlock system positioning analysis skill pack

    Time:2020-11-4

    Called reading series is an educational app of Chengdu Book Sound Technology Co., Ltd. It mainly aims at children aged 3-12, based on the law of children’s physical and mental development, adhering to Mr. Ye Shengtao’s Chinese education theory, reading more books, reading good books and thinking hard. An excellent teaching team composed of primary […]