Tag:Special characters

  • HTML special character conversion table

    Time:2021-9-29

    character decimal system Character number Entity name   — Unuse Space — Space bar !  !  —  Exclamation mark ”  ” ;  "  Double quotation mark #  #  —  Number sign $  $  —  Dollar sign %  %  —  Percent sign &  &  &  Ampersand ‘  ‘  —  Single quote apostrophe (  (  —  Left […]

  • Mongo change data type

    Time:2021-9-19

    Mongo writes in quotation marks, resulting in some numeric fields of string type. Modify the field type to numeric type. db.Report99.find().forEach( function(doc){ db.Report99.update({‘_id’: doc._id},{$set:{“begin-quantity”: parseFloat(doc[“begin-quantity”])}}); // Change to floating point number db.Report99.update({‘_id’: doc._id},{$set:{“end-quantity”: NumberInt(doc[“end-quantity”])}}); // Change to integer } ); Mongo4.2 + version, the parameters can be as follows: db.getCollection(“my-report”).update( { “begin-quantity”: { $type: “string” […]

  • PostgreSQL password authentication enhancements

    Time:2021-9-5

    Introduction to password verification The passwordcheck module checks whether the user password conforms to the specified rules during create role or create user. If the password is weak, the password execution will be rejected and an error will be returned during this period.   The module is located in the srcpkg / contrib directory. After […]

  • Detailed explanation of curl command and @& special character processing

    Time:2021-8-31

    catalogue Examples of common usage Processing of special characters 1、 Examples of 10 common uses of curl preface In Linux, curl is a file transfer tool that uses URL rules to work on the command line. It can be said that curl is a very powerful HTTP command line tool. It supports file upload and […]

  • XHTML special character collection

    Time:2021-8-20

    nbsp     no-break space = non-breaking space, iexcl ¡ ¡ inverted exclamation mark, U+00A1 ISOnum cent ¢ ¢ cent sign, U+00A2 ISOnum pound £ £ pound sign, U+00A3 ISOnum curren ¤ ¤ currency sign, U+00A4 ISOnum yen ¥ ¥ yen sign = yuan sign, U+00A5 ISOnum brvbar ¦ ¦ broken bar = broken vertical […]

  • Regular expression application analysis of special characters [easy and detailed introduction]

    Time:2021-8-18

    Character/Meaning: for characters, it usually means literally, indicating that the next character is a special character without explanation.For example: / B / matches the character ‘B’. By adding a backslash before B, that is, / B /, the character becomes a special character, indicatingMatch the dividing line of a word.Or:For several characters, the description is […]

  • Illegal character processing in Linux command line

    Time:2021-8-13

    Characters like $, & in linux commands are illegal. What if you only want to display these special characters as general symbols in the command? Reference is required. There are three reference methods in Linux. Enclose in double quotation marks’ ‘, but this is not valid for’ $’. echo “Today is $(date)” Use single quotation […]

  • Parameters with special characters submitted by get

    Time:2021-8-13

    How to handle it in JSP?For example, when I connect < a href = “product. JSP? Name = A & T plastic” > A & T plastic < / a >, I cannot read the correct value of the name parameter when accepting the parameter. How can I read it correctly? There are other special […]

  • Web development skills

    Time:2021-8-9

    1.user-select:noneScenario: Test colleagues often tell us that when the operation is relatively rapid, the elements of the page will always have a layer of blue, which does not affect the effect, but it is not beautiful. In fact, this is a user selection operation. The browser comes with it. If you don’t want to change […]

  • JS skills – drawing special characters in canvas

    Time:2021-6-10

    The simplest and most practical way to draw special symbols in canvas is to usecharacter, withfillTextTo draw in the same way. Of course, if there are special requirements for the style of special symbols, the use of pictures is also a good choice. Here we only introduce the character drawing method. Scheme 1: use special […]

  • Summary of regular expression

    Time:2021-4-26

    Regular expression learning Regular expressions are used to solve < span style = color:red; Background: background color; Font size: text size; ‘” String search and replacement problem < / span >, you can use the regular expression engine to determine whether a string is in line with the well-defined rules in the regular expression engine, […]

  • Regular expressions for filtering special characters in JS

    Time:2021-3-22

    Copy codeThe code is as follows: function stripscript(s) { var pattern = new RegExp(“[`[email protected]#$^&*()=|{}’:;’,\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“’。,、?]”) var rs = “”; for (var i = 0; i < s.length; i++) { rs = rs+s.substr(i, 1).replace(pattern, ”); } return rs; } Verify that all input fields contain special symbols Copy codeThe code is as follows: /** *Verify that all […]