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 to pass a command that may contain special characters (such as % or !) inside a variable to a for /f loop?

I have a few nested loops in my code and in some point, they're divided by a call to a label like this: @echo off chcp 65001 for /r %%a in (*.mkv *.mp4 *.avi *.mov) do ( echo Processing "%%~a" call :innerloop "%%a" "%%~fa" ) :: Instead of…
1
vote
3 answers

JSON escaped characters

I have a string that terminates prematurely because of '&q' (I'm guessing) being escaped in the original string. How should I handle this if I want to retain the original string in PHP? Original…
el_pup_le
  • 11,711
  • 26
  • 85
  • 142
1
vote
2 answers

Google Sheets - Convert UTF-8 Text to "normal character"

I'm looking for a solution to convert strings formatted in UTF-8? (Avr%C3%ACl) to their normal appearance. It is a list of Names that should be…
boe
  • 11
  • 2
1
vote
0 answers

Read hyperterminal file(ht file) in R

Is it possible for R to read/import hyperterminal file(.ht) ? I have tried to use read.csv, read.table, read_tsv and read.delim, but no one works. I think because the file contain some special character(maybe due to the encoding ANSI but I am not…
Woon
  • 11
  • 1
1
vote
1 answer

Replace Output of Tree Command with Spaces and Tabs

So there's a problem I am trying to solve and I don't know if this is the way to go about it. Basically I have a folder structure that looks like: \---folder \---subfolder1 +---subsub1 | +---subsubsub1 \---subsub2 …
bsquared
  • 13
  • 3
1
vote
1 answer

What's the best way to work with datasets that contain special characters in their column names in R?

I am working with some large datasets that contain special characters in their column names. The column names look something like: "@c_age1619_da * ((df.age >= 16) & (df.age <= 19))" or "sovtoll_available == False". What would be the best way to…
Nazanin
  • 81
  • 7
1
vote
1 answer

How can I know which characters inside a string are compositions of a single accentuated character in C?

My native language is not English, is Portuguese-BR and we have these accentuated characters (á, à, ã, õ, and so on). So, my problem is, if I put one of these characters inside a string, and I try to iterate over each character inside it, I'm going…
1
vote
1 answer

sed and single quote [']

I have a file readme.txt in which I want to find the text 'I like pizza' and remove the ' character with sed cmd and to modify to: I like pizza I have tried with this script #!/bin/bash echo $1'/readme.txt' $1/build.ninja sed -i "s|\'I like…
Mariano
  • 240
  • 3
  • 15
1
vote
3 answers

How to replace or encode single and right double quotation mark in JavaScript?

I have string contains this “No.” as you see that's not normal double quotes. I tried to encode it manually by using replace like this var stmt = "select “No.”"; stmt = stmt.replace('“', '\u201c'); stmt = stmt.replace('”',…
PHP User
  • 2,350
  • 6
  • 46
  • 87
1
vote
1 answer

How can I escape special characters in class parameter properties in typescript using shorthand?

I am creating a model class in typescript: class User { private 'google.com': string; private surname: string; private age: number; constructor(name: string, surname: string, age: number) { this['google.com'] = name; this.surname =…
ngaffer
  • 63
  • 10
1
vote
2 answers

How to identify a word that starts with a number or special character not using regex?

I need to remove words from a string that begin with a number or special character. I cannot simply put specific values since the string is based on user input, so it will be unknown. All I've been able to come up with, without having to import…
user12476460
1
vote
1 answer

Hive - Remove leading and trailing new line characters?

trim() function in hive does't remove leading and trailing new line characters. is there any alternative solution to do it except UDF?
Dennis Huang
  • 85
  • 1
  • 4
1
vote
0 answers

Trino create table with special characters in nested columns

I have to create a Trino table, but some of the columns have the character - in their names. The columns that are posing a problem are in nested fields, like so : `root_field` ARRAY( ROW<`nested_1`: `nested_2` ROW( `problematic-field`:…
Flxnt
  • 177
  • 4
  • 22
1
vote
2 answers

Why must < be escaped in an XML attribute?

I wonder a bit why < must be escaped in an XML attribute, e.g. From the surrounding (inside a tag, inside an attribute value) it should be quite clear for a parser that it can't be the beginning of a new tag. What is the reason…
medihack
  • 16,045
  • 21
  • 90
  • 134
1
vote
1 answer

stdin.readLineSync() can't handle special characters

I'm a beginner in Dart. I want to write a program that takes an input and print it with some predefined text. This is how my code looks like: import 'dart:convert'; import 'dart:io'; main() { print('What is your name?'); print('Hello…
TLeo
  • 76
  • 6
1 2 3
99
100