Search Results

Search found 4 results on 1 pages for 'inktri'.

Page 1/1 | 1 

  • PHP function to convert unicode to special characters?

    - by inktri
    Is there a php function to handle the encodings below? .replaceAll("\u00c3\u0080", "À") .replaceAll("\u00c3\u0081", "Á") .replaceAll("\u00c3\u0082", "Â") .replaceAll("\u00c3\u0083", "Ã") .replaceAll("\u00c3\u0084", "Ä") .replaceAll("\u00c3\u0085", "Å") .replaceAll("\u00c3\u0086", "Æ") .replaceAll("\u00c3\u00a0", "à") .replaceAll("\u00c3\u00a1", "á") .replaceAll("\u00c3\u00a2", "â") .replaceAll("\u00c3\u00a3", "ã") .replaceAll("\u00c3\u00a4", "ä") .replaceAll("\u00c3\u00a5", "å") .replaceAll("\u00c3\u00a6", "æ") .replaceAll("\u00c3\u0087", "Ç") .replaceAll("\u00c3\u00a7", "ç") .replaceAll("\u00c3\u0090", "Ð") .replaceAll("\u00c3\u00b0", "ð") .replaceAll("\u00c3\u0088", "È") .replaceAll("\u00c3\u0089", "É") .replaceAll("\u00c3\u008a", "Ê") .replaceAll("\u00c3\u008b", "Ë") .replaceAll("\u00c3\u00a8", "è") .replaceAll("\u00c3\u00a9", "é") .replaceAll("\u00c3\u00aa", "ê") .replaceAll("\u00c3\u00ab", "ë") .replaceAll("\u00c3\u008c", "Ì") .replaceAll("\u00c3\u008d", "Í") .replaceAll("\u00c3\u008e", "Î") .replaceAll("\u00c3\u008f", "Ï") .replaceAll("\u00c3\u00ac", "ì") .replaceAll("\u00c3\u00ad", "í") .replaceAll("\u00c3\u00ae", "î") .replaceAll("\u00c3\u00af", "ï") .replaceAll("\u00c3\u0091", "Ñ") .replaceAll("\u00c3\u00b1", "ñ") .replaceAll("\u00c3\u0092", "Ò") .replaceAll("\u00c3\u0093", "Ó") .replaceAll("\u00c3\u0094", "Ô") .replaceAll("\u00c3\u0095", "Õ") .replaceAll("\u00c3\u0096", "Ö") .replaceAll("\u00c3\u0098", "Ø") .replaceAll("\u00c5\u0092", "Œ") .replaceAll("\u00c3\u00b2", "ò") .replaceAll("\u00c3\u00b3", "ó") .replaceAll("\u00c3\u00b4", "ô") .replaceAll("\u00c3\u00b5", "õ") .replaceAll("\u00c3\u00b6", "ö") .replaceAll("\u00c3\u00b8", "ø") .replaceAll("\u00c5\u0093", "œ") .replaceAll("\u00c3\u0099", "Ù") .replaceAll("\u00c3\u009a", "Ú") .replaceAll("\u00c3\u009b", "Û") .replaceAll("\u00c3\u009c", "Ü") .replaceAll("\u00c3\u00b9", "ù") .replaceAll("\u00c3\u00ba", "ú") .replaceAll("\u00c3\u00bb", "û") .replaceAll("\u00c3\u00bc", "ü") .replaceAll("\u00c3\u009d", "Ý") .replaceAll("\u00c5\u00b8", "Ÿ") .replaceAll("\u00c3\u00bd", "ý") .replaceAll("\u00c3\u00bf", "ÿ");

    Read the article

  • Grep... What patterns to extract href attributes, etc. with PHP's preg_grep?

    - by inktri
    Hi, I'm having trouble with grep.. Which four patterns should I use with PHP's preg_grep to extract all instances the "____" stuff in the strings below? 1. <h2><a ....>_____</a></h2> 2. <cite><a href="_____" .... >...</a></cite> 3. <cite><a .... >________</a></cite> 4. <span>_________</span> The dots denote some arbitrary characters while the underscores denote what I want. An example string is: </style></head> <body><div id="adBlock"><h2><a href="https://www.google.com/adsense/support/bin/request.py?contact=afs_violation&amp;hl=en" target="_blank">Ads by Google</a></h2> <div class="ad"><div><a href="http://www.google.com/aclk?sa=L&amp;ai=C4vfT4Sa3S97SLYO8NN6F-ckB5oq5sAGg6PKlDaT-kwUQASCF4p8UKARQtobS9AVgyZbRhsijoBnIAQGqBBxP0OSEnIsuRIv3ZERDm8GiSKZSnjrVf1kVq-_Y&amp;num=1&amp;sig=AGiWqtwG1qHnwpZ_5BNrjrzzXO5Or6EDMg&amp;q=http://www.crackle.com/c/Spider-Man_The_New_Animated_Series/%3Futm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3DGST_10016_CRKL_US_PRD_S_TeleV_SPID_Tele_Spider-Man%26utm_term%3Dspiderman%26utm_content%3Ds264Yjg9f_3472685742_487lrz1638" class="titleLink" target="_parent">Spider-<b>Man</b> Animated Serie</a></div> <span>See Your Favorite Spiderman <br> Episodes for Free. Only on Crackle.</span> <cite><a href="http://www.google.com/aclk?sa=L&amp;ai=C4vfT4Sa3S97SLYO8NN6F-ckB5oq5sAGg6PKlDaT-kwUQASCF4p8UKARQtobS9AVgyZbRhsijoBnIAQGqBBxP0OSEnIsuRIv3ZERDm8GiSKZSnjrVf1kVq-_Y&amp;num=1&amp;sig=AGiWqtwG1qHnwpZ_5BNrjrzzXO5Or6EDMg&amp;q=http://www.crackle.com/c/Spider-Man_The_New_Animated_Series/%3Futm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3DGST_10016_CRKL_US_PRD_S_TeleV_SPID_Tele_Spider-Man%26utm_term%3Dspiderman%26utm_content%3Ds264Yjg9f_3472685742_487lrz1638" class="domainLink" target="_parent">www.Crackle.com/Spiderman</a></cite></div> <div class="ad"><div><a href="http://www.google.com/aclk?sa=l&amp;ai=CnQFi4Sa3S97SLYO8NN6F-ckB3M7nQtyU2PQEq6bCBRACIIXinxQoBFCm15KB-f____8BYMmW0YbIo6AZoAHiq_X-A8gBAaoEIU_Q9JKLiy1MiwdnHpZoBnmpR1J8pP2jpTwMx2uj2nN4WA&amp;num=2&amp;sig=AGiWqtwDrI5pWBCncdDc80FKt32AJMAQ6A&amp;q=http://www.costumeexpress.com/browse/TV-Movies/_/N-1z141uu/Ntt-batman/results1.aspx%3FREF%3DKNC-CEgoogle" class="titleLink" target="_parent">Kids <b>Batman</b> Costumes</a></div> <span>Great Selection of <b>Batman</b> &amp; Batgirl <br> Costumes For Kids. Ships Same Day!</span> <cite><a href="http://www.google.com/aclk?sa=l&amp;ai=CnQFi4Sa3S97SLYO8NN6F-ckB3M7nQtyU2PQEq6bCBRACIIXinxQoBFCm15KB-f____8BYMmW0YbIo6AZoAHiq_X-A8gBAaoEIU_Q9JKLiy1MiwdnHpZoBnmpR1J8pP2jpTwMx2uj2nN4WA&amp;num=2&amp;sig=AGiWqtwDrI5pWBCncdDc80FKt32AJMAQ6A&amp;q=http://www.costumeexpress.com/browse/TV-Movies/_/N-1z141uu/Ntt-batman/results1.aspx%3FREF%3DKNC-CEgoogle" class="domainLink" target="_parent">www.CostumeExpress.com</a></cite></div> <div class="ad"><div><a href="http://www.google.com/aclk?sa=l&amp;ai=CAMYT4Sa3S97SLYO8NN6F-ckB3ZnWmgGdoNLrDaumwgUQAyCF4p8UKARQrqSVxwdgyZbRhsijoBmgAZH77uwDyAEBqgQYT9DU7oqLLEyLB2dHlxZFnQzyeg-yHt88&amp;num=3&amp;sig=AGiWqtzqAphZ9DLDiEFBJlb0Ou_1HyEyyA&amp;q=http://www.OfficialBatmanCostumes.com" class="titleLink" target="_parent"><b>Batman</b> Costume</a></div> <span>Official <b>Batman</b> Costumes. <br> Huge Selection &amp; Same Day Shipping!</span> <cite><a href="http://www.google.com/aclk?sa=l&amp;ai=CAMYT4Sa3S97SLYO8NN6F-ckB3ZnWmgGdoNLrDaumwgUQAyCF4p8UKARQrqSVxwdgyZbRhsijoBmgAZH77uwDyAEBqgQYT9DU7oqLLEyLB2dHlxZFnQzyeg-yHt88&amp;num=3&amp;sig=AGiWqtzqAphZ9DLDiEFBJlb0Ou_1HyEyyA&amp;q=http://www.OfficialBatmanCostumes.com" class="domainLink" target="_parent">www.OfficialBatmanCostumes.com</a></cite></div> <div class="ad"><div><a href="http://www.google.com/aclk?sa=l&amp;ai=C767t4Sa3S97SLYO8NN6F-ckBkZfSfoOppaMHq6bCBRAEIIXinxQoBFDX2bw6YMmW0YbIo6AZoAHpprP8A8gBAaoEG0_QhJSMiytMiwdnHpZoF3g0Uj8_Vl2r4TpI_g&amp;num=4&amp;sig=AGiWqtyGO2DnFq_jMhP6ufj8pufT9sWQWA&amp;q=http://www.discountsuperherocostumes.com/batman-costumes.html" class="titleLink" target="_parent">Discount <b>Batman</b> Costumes</a></div> <span>Discount adult and kids <b>batman</b> <br> superhero costumes.</span> <cite><a href="http://www.google.com/aclk?sa=l&amp;ai=C767t4Sa3S97SLYO8NN6F-ckBkZfSfoOppaMHq6bCBRAEIIXinxQoBFDX2bw6YMmW0YbIo6AZoAHpprP8A8gBAaoEG0_QhJSMiytMiwdnHpZoF3g0Uj8_Vl2r4TpI_g&amp;num=4&amp;sig=AGiWqtyGO2DnFq_jMhP6ufj8pufT9sWQWA&amp;q=http://www.discountsuperherocostumes.com/batman-costumes.html" class="domainLink" target="_parent">www.discountsuperherocostumes.com</a></cite></div></div></body> <script type="text/javascript"> var relay = ""; </script> <script type="text/javascript" src="/uds/?file=ads&amp;v=1&amp;packages=searchiframe&amp;nodependencyload=true"></script></html> Thanks!

    Read the article

1