diacritics

German Umlauts in strftime date-formatting - correct utf-8 encoding?

北城以北 提交于 2019-12-22 02:01:24
问题 I'm creating a german date format like this with PHP 14. März 2012 (which is March 14th 2012). I'm working with $date[0] that contains a unix timestamp and I convert it like this to a readable german date. $date_day_month = strftime('%d. %B', $date[0]); $date_year = strftime('%Y', $date[0]); echo $date_day_month . $date_year; However I somehow get a question mark for the Umlaut ä like this 14. M�rz 2012 Why is that and how can I fix this? Thanks in advance. 回答1: You could try to make your

Different UTF-8 signature for same diacritics (umlauts) - 2 binary ways to write umlauts

ⅰ亾dé卋堺 提交于 2019-12-21 10:49:19
问题 I have a quite big problem, where I can't find any help around in the web: I moved a page from a website from OSX to Linux (both systems are running in de_DE.UTF-8) and run in an quite unknown problem: Some of the files were not found anymore, but obviously existed on the harddrive with (visibly) the same name. All those files contained german umlauts. I took one sample image, copied the original request-uri from the webpage and called it directly - same error. After rewriting the file-name

Convert special character (i.e. Umlaut) to most likely representation in ascii [duplicate]

☆樱花仙子☆ 提交于 2019-12-21 10:31:10
问题 This question already has answers here : PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string (7 answers) Closed 6 years ago . i am looking for a method or maybe a conversion table that knows how to convert Umlauts and special characters to their most likely representation in ascii. Example: Ärger = aerger Bôhme = bohme Søren = soeren pjérà = pjera Anyone any idea? Update : Apart from the good accepted Answer, i also found PECLs Normalizer to be quite interesting,

Broken Accented Characters in a MailTo Link

醉酒当歌 提交于 2019-12-21 05:51:33
问题 I'm trying to create a mailto link that contains french accented characters as the subject and email body. Both HTML and URI encoding the chars does not work. Here is my code: <a href="mailto:%20?subject=ce%20titre%20est%20cass%C3%A9.&body=travaux%20deja!%20cesser%20d'%C3%AAtre%20t%C3%AAtu">SEND EMAIL</a> Same result occurs without URI encoding: <a href="mailto:?subject=ce titre est cassé&body=travaux deja! cesser d'être têtu">SEND EMAIL</a> No Matter how i do it, the new email opens up with

Manage paths with accented characters

风格不统一 提交于 2019-12-21 05:29:14
问题 In a batch, specifying a path whose name contains an accented character, files are not being found into the file System while stripping out all accented character in the path, these files are found. Nevertheless, I have to manage paths written with accented character. Is there any way to solve this issue? If you need to know my OS, I'm on SEVEN 32. Thanks 回答1: Batch by default configuration can't print unicode characters but CAN recognize that chars and use it. That means you can't print "ú"

Ignoring diacritic characters when comparing words with special characters (é, è, …)

心已入冬 提交于 2019-12-20 12:15:47
问题 I have a list with some Belgian cities with diacritic characters: (Liège, Quiévrain, Franière, etc.) and I would like to transform these special characters to compare with a list containing the same names in upper case, but without the diacritical marks (LIEGE, QUIEVRAIN, FRANIERE) What i first tried to do was to use the upper case: LIEGE.contentEqual(Liège.toUpperCase()) but that doesn't fit because the Upper case of Liège is LIÈGE and not LIEGE . I have some complicated ideas like replacing

How to generate javadoc documentation with umlauts?

Deadly 提交于 2019-12-20 08:48:36
问题 I am trying to generate Java documentation in Eclipse. The source files are UTF-8 encoded and contain some umlauts. The resulting HTML files do not specify an encoding and do not use HTML entities, so the umlauts aren't displayed correctly in any browser. What can I do to change this? 回答1: See the -charset, -encoding and -docencoding flags for the javadoc command. -encoding specifies the input encoding -docencoding specifies the output encoding -charset makes javadoc include a meta tag with

accent ajax encoding issue

对着背影说爱祢 提交于 2019-12-20 03:08:43
问题 Source file has: header('Content-type: text/html; charset=iso8859-1'); Source ajax (jQuery) script is: $(document).ready(function() { $.ajaxSetup({ cache: false }); $("#searchfield").keyup(function(){ $("#insert_search") .load('ajax/searchobjects.php', {search_word: $("#searchfield").val()}, function(){ }); }); }); Destination file: header('Content-type: text/html; charset=iso8859-1'); echo $_POST['search_word']; Data sent: é Result is: é All files: Western (ISO Latin 1) (using TextWrangler)

jQuery Autocomplete with Special Characters (i.e. ö, Ä, é, or ß)

守給你的承諾、 提交于 2019-12-20 01:05:28
问题 How can I have autocomplete match on words with special characters, such as those in German: ö, Ä, é, or ß. For example, I'd like "mun" to match "München" and "Munchen". 回答1: There's an excellent article on this at A List Apart which includes some Javascript code var accentMap = { 'á': 'a', 'é': 'e', 'í': 'i', 'ó': 'o', 'ú': 'u' }; function accent_fold(s) { if (!s) { return ''; } var ret = ''; for (var i = 0; i < s.length; i++) { ret += accent_map[s.charAt(i)] || s.charAt(i); } return ret; };

jQuery Autocomplete with Special Characters (i.e. ö, Ä, é, or ß)

元气小坏坏 提交于 2019-12-20 01:04:35
问题 How can I have autocomplete match on words with special characters, such as those in German: ö, Ä, é, or ß. For example, I'd like "mun" to match "München" and "Munchen". 回答1: There's an excellent article on this at A List Apart which includes some Javascript code var accentMap = { 'á': 'a', 'é': 'e', 'í': 'i', 'ó': 'o', 'ú': 'u' }; function accent_fold(s) { if (!s) { return ''; } var ret = ''; for (var i = 0; i < s.length; i++) { ret += accent_map[s.charAt(i)] || s.charAt(i); } return ret; };