What are the allowed characters in a subdomain?

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 name are: a-z 0-9 – but not as a starting or ending character . as a separator for the textual portions of a domain name From https://www.rfc-editor.org/rfc/rfc1035 Various objects and parameters in the DNS have size … Read more

How to replace decoded Non-breakable space (nbsp)

Problem Explanation The reason why it’s not working is that you are specifying the non-breaking space incorrectly. The proper code for the non-breaking space in the UTF-8 encoding is 0xC2A0, it consists of two bytes – 0xC2 (194) and 0xA0 (160), so technically, you’re specifying only the half of the character’s code. A Bit of … Read more

How to escape colon (:) in $PATH on UNIX?

This is impossible according to the POSIX standard. This is not a function of a specific shell, PATH handling is done within the execvp function in the C library. There is no provision for any kind of quoting. This is the reason why including certain characters (anything not in the “portable filename character set” – … Read more

Post UTF-8 encoded data to server loses certain characters

After much research and attempts to make things working, I finally found a solution for the problem, that is a simple addition to existing code. Solution was to use parameter “UTF-8” in the UrlEncodedFormEntity class constructor: form = new UrlEncodedFormEntity(nameValuePairs,”UTF-8″); After this change, characters were encoded and delivered properly to the server side.

With iTerm2 on Mac, how to delete forward a word from cursor on command-line?

Preferences → Profile → Keys add the following shortcuts: ⌥← Send Escape Sequence Esc+ b ⌥→ Send Escape Sequence Esc+ f ⌘← Send Escape Sequence Esc+ [H ⌘→ Send Escape Sequence Esc+ [F ⌘←Delete Send Hex Code 0x18 0x7f (add bindkey “^X\\x7f” backward-kill-line to .zshrc if you use zShell) ⌥←Delete Send Hex Code 0x1B 0x08 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)