li:before{ content: “■”; } How to Encode this Special Character as a Bullit in an Email Stationery?

After proudly coloring my liststyle bullet without any image url or span tags, via: ul{ list-style: none; padding:0; margin:0; } li{ padding-left: 1em; text-indent: -1em; } li:before { content: “■”; padding-right:7px; } Although these stylesheets work perfectly down to the rounded borders and other css3 stuff, and although the recipient of the email (for instance, … Read more

What is the difference between iconv() and mb_convert_encoding() in PHP?

What’s the difference between iconv() and mb_convert_encoding() in PHP? Does one perform better, faster, etc. ( eg. with specific encodings )? In what situations would one be preferred over the other? Here’s what I think I know already: iconv() included with most installs of PHP. when characters that can’t be mapped to the new character … Read more

What is the first character in the sort order used by Windows Explorer?

For example, in a Windows folder, if we create some files and name them 1.html, 2.txt, 3.txt, photo.jpg, zen.png the order will be as is. But if we create another file with the name _file.doc it will be placed at the top. (considering we sort by name in descending order) likewise, what would be the … Read more

WebClient.DownloadString() returns string with peculiar characters

I have an issue with some content that we are downloading from the web for a screen scraping tool that I am building. in the code below, the string returned from the web client download string method returns some odd characters for the source download for a few (not all) web sites. I have recently … Read more

Looking for special characters in Google [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. Improve this question Do you know how to look for special characters with google…? I’m looking at bash code and there’s the ## operator. I would … Read more

removing emojis from a string in Python

I found this code in Python for removing emojis but it is not working. Can you help with other codes or fix to this? I have observed all my emjois start with \xf but when I try to search for str.startswith(“\xf”) I get invalid character error. emoji_pattern = r’/[x{1F601}-x{1F64F}]/u’ re.sub(emoji_pattern, ”, word) Here’s the error: … Read more

What are the allowed characters in a subdomain?

What characters are you allowed to use in a subdomain? Example: for someSub.example.com the someSub portion. I know you can use letters, numbers, and hyphens, but what about other characters? Can _ (underscore) be used? Answer Letters (except stressed à), Numbers 0-9 and Hyphen. http://en.wikipedia.org/wiki/Domain_name excerpt: Valid characters that can be used in a domain … Read more

Java: What does ~ mean

In this Java source code I have this line: if ((modifiers & ~KeyEvent.SHIFT_MASK) != 0) …. What does the tilde ~ mean? Answer The Tilde (~) performs a bitwise complement of a numerical value in Java. See: Bitwise complement (~): inverts ones and zeroes in a number AttributionSource : Link , Question Author : Martijn … Read more

How to run MySQL command on bash?

The following code works on the command line mysql –user=’myusername’ –password=’mypassword’ –database=’mydatabase’ –execute=’DROP DATABASE myusername; CREATE DATABASE mydatabase;’ However, it doesn’t work on bash file on execution #!/bin/bash user=myusername password=mypassword database=mydatabase mysql –user=’$user’ –password=’$password’ –database=’$database’ –execute=’DROP DATABASE $user; CREATE DATABASE $database;’ I receive the following error: ERROR 1045 (28000): Access denied for user ‘$user’@’localhost’ (using … Read more