special-characters

Special Characters in XML

痞子三分冷 提交于 2019-12-06 18:49:21
问题 I am creating a left navigation system utilizing xml and xsl. Everything was been going great until I tried to use a special character in my xml document. I am using » and I get th error. reason: Reference to undefined entity 'raquo'. error code: -1072898046 How do I make this work? 回答1: You are trying to use an HTML entity in a non-HTML or non-XHTML document. These entities are declared in the document's Document Type Definition (DTD). You should use the numerical Unicode version of the

Insert special character using :before pseudo class in css

末鹿安然 提交于 2019-12-06 18:09:37
问题 I was toying around with the :before pseudo class in css, trying to insert a special character but the result is not what I was hoping for. Using: .read_more:before { content: "»"; margin-right: 6px; } I get the character I want, but with an  character before it and using: .read_more:before { content: "»"; margin-right: 6px; } I get the complete » on the html page. I can think of a couple of ways to solve my problem, but I was wondering what the correct syntax would be if I wanted to use the

Trouble replacing Chr(160) with VBA in excel

我们两清 提交于 2019-12-06 15:54:05
I have been receiving excel files for awhile that are usually plagued with the special character alt+0160 after the accounts. I usually just manually replace it in excel but recently I've grown lazy and want to replace it using my VBA script. This script is used to insert the needed columns into our database: Sub insert() Dim sSql As String Dim db As New ADODB.Connection 'Go to Tools, References and turn on ActiveX Data Objects 2.8 Library db.Open "DSN=XXXX;uid=XXXX;pwd=XXXX" 'INSERT ORACLE NAME AND PASSWORD For i = 2 To 92 'Change Rows where it starts and ends strAccount = Replace(Trim(Range(

Sqoop Import replace special characters of mysql

折月煮酒 提交于 2019-12-06 14:48:37
I have 1000 tables with more than 100000 records in each table in mysql. The tables have 300-500 columns. Some of tables have columns with special characters like .(dot) and space in the column names. Now I want to do sqoop import and create a hive table in HDFS in a single shot query like below sqoop import --connect ${domain}:${port}/$(database) --username ${username} --password ${password}\ --table $(table) -m 1 --hive-import --hive-database ${hivedatabase} --hive-table $(table) --create-hive-table\ --target-dir /user/hive/warehouse/${hivedatabase}.db/$(table) After this the hive table is

PostgreSQL encoding issue while executing query from command line

∥☆過路亽.° 提交于 2019-12-06 13:38:50
I am trying to execute an SQL query which is stored in the file. I am using following command to execute: psql -d DB_NAME -a -f QUERY_NAME.sql I have some non English text in the SQL file like - સુરત When the query is executed the text in the database looks like - à ª¸à «Âà ª°à ª¤ How do I execute the query from command line so that it runs correctly? Make sure the client_encoding matches the encoding of your file. Check your system locale. Then use a matching command line argument for psql. Quoting the manual here: If at least one of standard input or standard output are a terminal,

jQuery Autocomplete and Special Characters in WordPress

我与影子孤独终老i 提交于 2019-12-06 13:17:36
Hopefully im not missing an already existing answer to this question. Im working with a wordpress theme that uses jquery ui autocomplete to provide category selections in a front end form. Code is below. Problem is that if a category name has an &, it cant display the character and instead shows & in the autocomplete box. Can i make it show the character properly? ` jQuery(function(){ /* Auto Complete */ var availableTags = [ <?php $terms_array = array(); $terms = get_terms( 'majors', 'hide_empty=0' ); if ($terms) foreach ($terms as $term) { $terms_array[] = '"'.$term->name.'"'; } echo implode

Issues with the accented characters

落爺英雄遲暮 提交于 2019-12-06 10:11:35
I have a search box on my site and i need to replace all the Spanish characters that user types in to equivalent English alphabets. I have coded which is shown below. This is not working when i plug in it to the my Project and even when create a simple html page which coded same. My page is using <meta charset="utf-8" /> . This is working fine when i created a fiddle http://jsfiddle.net/KJAy3/ . This is how it it is show in the debugger What am i doing wrong? What kind of encoding i am supposed to us? This Replace method is triggered before the form submit. function encodeSearch(term){ term

Converting “Bizarre” Chars in String to Roman Chars

橙三吉。 提交于 2019-12-06 10:07:25
问题 I need to be able to convert user input to [a-z] roman characters ONLY (not case sensitive). So, there are only 26 characters that I am interested in. However, the user can type in any "form" of those characters that they wish. The Spanish "n", the French "e", and the German "u" can all have accents from the user input (which are removed by the program). I've gotten pretty close with these two extension methods: public static string LettersOnly(this string Instring) { char[] aChar = Instring

regex - brackets and parenthesis in character-class

ぃ、小莉子 提交于 2019-12-06 09:28:05
I would like to match these characters: [ ] ( ) in a character class in a regex, how can I do that? echo 'some text (some text in parenthesis) [some other in brackets]' | grep '[\[\]\(\)]' This one doesn't match any character. You can use it like this: echo 'some text (some text in paranthesis) [some other in brackets]' | grep -o '[][()]' ( ) [ ] You don't need to escape ( and ) inside a character class. Moreover if you place ] and [ right after opening [ then you don't need to escape them either. Just FYI: Accoding to the grep documentation, section 3.2 Character Classes and Bracket

Python pandas doesn't recognize special characters

拈花ヽ惹草 提交于 2019-12-06 08:51:12
I am trying to use df['column_name'].str.count("+") in python pandas, but I receive "error: nothing to repeat" . With the regular characters the method works, e.g. df['column_name'].str.count("a") works fine. Also, there is a problem with the "^"-sign. If I use df['column_name'].str.contains("^") the result is incorrect - it looks like "^" gets interpreted as " " (empty space). Surprisingly, if I use .count("+") and .contains("^") on a regular, non-pandas string they work perfectly fine. simple working example: df = pd.DataFrame({'column1': ['Nighthawks+', 'Dragoons'], 'column2': ['1st', '2nd'