Facebook
From Mustard Owl, 9 Years ago, written in PHP.
Embed
Download Paste or View Raw
Hits: 776
  1. private
  2.         function _polish($char)
  3.         {
  4.                 //fixing utf-8 problems of function FineDiff::renderDiffToHTMLFromOpcodes
  5.                 //didnt found better solution to make it ;)    
  6.                 /*             
  7.                 $char = str_replace("ą", 'ą', $char);
  8.                 $char = str_replace("ś", 'ś', $char);
  9.                 $char = str_replace("ć", 'ć', $char);
  10.                 $char = str_replace("ł", 'ł', $char);
  11.                 $char = str_replace("ż", 'ż', $char);
  12.                 $char = str_replace("ź", 'ź', $char);
  13.                 $char = str_replace("ó", 'ó', $char);
  14.                 $char = str_replace("ę", 'ę', $char);
  15.                 */
  16.                 return $char;
  17.         }