Tag:Garbled code

  • Backup and restore operation of Java MySQL database

    Time:2021-7-18

    package com.itenp.gen.action; MySQL backup and restore This work adoptsCC agreementReprint must indicate the author and the link of this article

  • Installing chrome and firebox in Ubuntu

    Time:2021-7-13

    order This article mainly describes how to install chrome and firebox in docker file. chrome RUN apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ –no-install-recommends RUN curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add – \ && echo “deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main” > /etc/apt/sources.list.d/google-chrome.list RUN apt-get update ## xdg-icon-resource: No writable system […]

  • Solve the problem of garbled Chinese file name in Git status display

    Time:2021-7-9

    When using git status to view the changed but uncommitted Chinese file name, it is found that it will be displayed as a string of numbers, and the Chinese file name is not displayed. The details are as follows: $ git status #In branch master #Changes that have not been staged for submission: #(use “git […]

  • Correct operation posture of PHP world

    Time:2021-6-21

    PHP export to world 1. Download the latest PHP word class libraryhttp://phpword.codeplex.com/ <?phpfunction outword(){ vendor(‘PHPWord.PHPWord’); vendor(‘PHPWord.PHPWord.Shared.Font’); $PHPWord = new \PHPWord(); $section = $PHPWord->createSection();// Add default page //Define table style $styleTable = array(‘borderSize’=>6,’borderColor’=>’006699’,’cellMargin’=>80);// First line style $styleFirstRow = array(‘borderBottomSize’=>18,’borderBottomColor’=>’0000FF’,’bgColor’=>’66BBFF’);// Define column styles $styleCell = array(‘valign’=>’center’); // Use the second parameter of addcell to style the cell […]

  • Implementation of ZABBIX with dry goods four line script_ Server high availability

    Time:2021-6-14

    This article includes: four lines of shell script to implement ZABBIX_ High availability of server, ZABBIX_ How to solve the Chinese garbled code when the server executes the window script. Transferred from @ TWT community, [author] Liu Junyuan Four line shell script to realize ZABBIX_ High availability of server Scene simulation: The importance of high […]

  • Sparksql performs update operation to modify MySQL data

    Time:2021-6-5

    This is a way of not changing the source code //User sample class case class User1(id: Long, name: String, password: String, imgUrl: String, update_date: String) object SparkSQLUpdateMySQLOfJDBC { def main(args: Array[String]): Unit = { //SparkSession val spark: SparkSession = SparkSession.builder() .appName(“SparkSqlToMysql”) .master(“local”) .getOrCreate() //Read JSON / CSV file data val df = spark.read.json(“data/user.json”) df.show() val […]

  • Tomcat source code learning environment construction

    Time:2021-5-10

    1、 Source code download PS: multi map warning Before we start to read the source code, we need to build an environment to facilitate us to debug the source code. We can download the specific source code from the official website (here I take version 8.5.63 as an example). 2、 Project import Download and unzip […]

  • 3、 Join, detach

    Time:2021-5-8

    Join: #include<thread> #include<iostream> #include <windows.h> void myPrintf() { Sleep(1000); std::cout << “threadRun” << std::endl; return; } int main() { std::thread t(myPrintf); t.join(); //15 std::cout << “main” << std::endl; system(“pause”); return 0; } /*Output: threadRun main Please press any key to continue */ Although the sub thread sleeps for one second, the main thread does not […]

  • Tomcat8 log path, garbled, automatic segmentation problem solving

    Time:2021-5-6

    Log garbled vim catalina.sh Add – dfile. Encoding = UTF-8 as shown in the figure JAVA_OPTS=”$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dfile.encoding=UTF-8″ Log path vim catalina.sh Modify Catalina as shown in the figure_ OUT= if [ -z “$CATALINA_OUT” ] ; then #CATALINA_OUT=”$CATALINA_BASE”/logs/catalina.out CATALINA_OUT=/data/WEBLOG/uat-ecommerce-app/catalina.out fi Automatic log segmentation [[email protected]_20 conf]# vim logging.properties 1catalina.org.apache.juli.AsyncFileHandler.level = FINE 1catalina.org.apache.juli.AsyncFileHandler.directory = /data/WEBLOG/uat-ecommerce-app 1catalina.org.apache.juli.AsyncFileHandler.prefix = […]

  • Random access file of [Java IO stream] (RandomAccessFile class)

    Time:2021-4-28

    Random access file (RandomAccessFile class) summary: Examples of this class support reading and writing random access files. The code used by the RandomAccessFile class by default is iso-8859-1, so you must pay attention to the coding format when using this class for reading and writing. characteristic: 1. The RandomAccessFile class is not a stream, but […]

  • In eclipse SSM project, the front end fills in the form and stores the data in the data table. The Chinese characters are garbled, which leads to the garbled back-end display

    Time:2021-4-23

    Problem description Eclipse project, SSM, front-end fill in the form (form element), submit the filled in Chinese “receiving address”, save to the database, there is the problem of Chinese garbled(the data table is garbled, and the data read from the database to the page is garbled)     probably 1. Eclipse project coding format (this estimate […]

  • [PHP] using PHP to generate and download the CSV file

    Time:2021-4-20

    The principle is simple , That is to output a header with PHP , The browser can download the file directly The cell contents are separated by English commas , In order to prevent garbled code , A transcoding operation is performed on the Chinese character part , From utf8 to GBK In order to […]