Questions tagged [special-characters]

Special characters (as they apply to programming) are language-specific reserved characters or symbols used to accomplish a specific task (e.g. wildcard characters, data type indicators, escape characters, etc).

Every character is special in its own way. When talking about "special characters" in a question, be specific. Do you mean ASCII symbols, Japanese kana, or Egyptian hieroglyphs?

For example, when working with Unicode, characters from exotic scripts aren't more "special", technically, than characters from the ASCII range. If you mean characters that you can't enter directly with an US PC keyboard, you should probably use the term "non-ASCII characters" and avoid this tag.

5011 questions
1
vote
1 answer

How do I remove characters like "?" from an array powershell

I am trying to validate strings of text taken from PC descriptions in Active Directory. But I want to remove rogue characters like a single value of "??" from any text before validating any text. I have this test code as an example. But whenever it…
1
vote
2 answers

Replace or Remove special characters such as ' and " in pandas dataframe

In the data frame that I am working on, there are several columns that contain special characters such as " and ' . They are either at the end or in the beginning of the column name. How can I get rid of them? Is there any chance to read files with…
YIF99
  • 51
  • 1
  • 8
1
vote
1 answer

Lucene is not returning the results if I am searching with special characters

I am using Lucene 6.6.0 version, and I am indexing my data using StandardAnalyzer. I am indexing following data of words. a&e networks a&e After indexing , when I am searching with a&e it is not returning any results. this is my sample code. …
Mahesh
  • 93
  • 1
  • 8
1
vote
0 answers

Special character conversion issue in Datastage

In Datastage, we have source system as Oracle and target system as Netezza. In Oracle the column datatype is varchar whereas in Netezza it is nvarchar. Most of the characters are Latin and Dutch. We are getting character in our table row which is…
PPK
  • 55
  • 7
1
vote
1 answer

How to remove apostrophe s in sql in bigquery?

im still learning SQL for Big Query . How do i remove the "apostrophe s" in this word Let's Go** ? I do need to so some cleaning in the list of data for a single column . Thanks
Woofer
  • 9
  • 3
1
vote
1 answer

Identification of special characters in a string using R

I have a data field which consists of firm names that may contain special characters such as @,/,-. I need to identify whether the data field contains any special characters. I have tried the suggestions listed on r check if string contains special…
1
vote
1 answer

Reverse string without changing the position of special character using regex

class der{ public static void maxLength(String str) { String s = " "; s = str.replaceAll("[^a-z]+", " "); String rev = " "; char ch[] = s.toCharArray(); for(int i =ch.length-1; i>=0 ; i--){ rev…
Alka
  • 23
  • 2
1
vote
2 answers

Replace special characters in pandas dataframe from a string of special characters

I have created a pandas dataframe called df using this code: import numpy as np import pandas as pd ds = {'col1' : ['1','3/','4'], 'col2':['A','!B','@C']} df =pd.DataFrame(data=ds) The dataframe looks like this: print(df) col1 col2 0 1 …
Giampaolo Levorato
  • 1,055
  • 1
  • 8
  • 22
1
vote
0 answers

Print All Files in a folder, subfolders with special characters. (C++)

My current code is: namespace fs = std::filesystem; void printAllInPath(std::filesystem::path a) { for (auto const& dir_entry : fs::recursive_directory_iterator(a)) { std::cout << dir_entry << "\n"; } } The thing is, once it…
Anton C
  • 59
  • 4
1
vote
1 answer

MySQL error when adding special characters, specialy at sign, even with mysql_real_escape_string() method

I am tying to make a user system with a mysql database. I have tried to insert a row into a table with the following php code: $UserCreateQueryText = "INSERT INTO users ( Username, Password, FirstName, LastName, eMail, ID, ClearanceLevel) VALUES…
rdelfin
  • 819
  • 2
  • 13
  • 31
1
vote
1 answer

How to handle dollar sign ($) in JSON path for super type in redshift?

Summary: I am trying to extract the values from a json stored as a super in redshift. Context This issue is near identical to the question posted here for TSQL. My schema: user_id VARCHAR properties SUPER Sample data: { "$os": "Mac OS X", …
1
vote
2 answers

How to eliminate the special character ^\^@ from String in Java

My application is reading a file which contains following data: MENS HEALTH^\^@ P while actual text should be MENS HEALTH P I have already replaced the '\u0000' but still "^\" is still remaining in the string. I am not sure what is code for this…
Manish
  • 1,274
  • 3
  • 22
  • 59
1
vote
1 answer

powershell cannot change directory if path contains [ whereas dos command can

I don't understand why I cannot in PowerShell go into a folder with [], for example cd c:\test\[demo] whereas I have created in PowerShell with md [demo] and I can actually cd with DOS command. So what can I do if I want to navigate in this…
user310291
  • 36,946
  • 82
  • 271
  • 487
1
vote
0 answers

Escape Special Character in output-path of rmarkdown::render()

I'm currently working on multiple reports that I generate with rmarkdown::render(). I use a Main.Rmd as a template to create the report for a certain group. In an R.Script-File I use a loop to iterate over the groups (and their subgroups) and render…
Martina
  • 139
  • 1
  • 10
1
vote
1 answer

Special char jquery

I have a problem with > and jquery datatable shows '>' fine but when I click on the row I get the character > and I'm desperate. Any solution? $('#sample tbody').on('click', 'tr', function() { //console.log(table.row(this).data()); …