original_string: private function translate_uri($uri) {
          // remove all html entities...
          $native_path = html_entity_decode($uri);
          $parts = explode('/', $native_path);
          for ($i = 0; $i < count($parts); $i++) {
              // check if part is allready utf8
              if (iconv('UTF-8', 'UTF-8', $parts[$i]) == $parts[$i]) {
                  $parts[$i] = rawurlencode($parts[$i]);
              } else {
                  $parts[$i] = rawurlencode(utf8_encode($parts[$i]));
              }
          }
          return implode('/', $parts);
      }
code: private function translate_uri($uri) {
          // remove all html entities...
          $native_path = html_entity_decode($uri);
          $parts = explode('/', $native_path);
          for ($i = 0; $i < count($parts); $i++) {
              // check if part is allready utf8
              if (iconv('UTF-8', 'UTF-8', $parts[$i]) == $parts[$i]) {
                  $parts[$i] = rawurlencode($parts[$i]);
              } else {
                  $parts[$i] = rawurlencode(utf8_encode($parts[$i]));
              }
          }
          return implode('/', $parts);
      }
code_tokens: private function translate_uri ( $ uri ) { // remove all html entities... $ native_path = html_entity_decode ( $ uri ) ; $ parts = explode ( '/' , $ native_path ) ; for ( $ i = 0 ; $ i < count ( $ parts ) ; $ i ++ ) { // check if part is allready utf8 if ( iconv ( 'UTF-8' , 'UTF-8' , $ parts [ $ i ] ) == $ parts [ $ i ] ) { $ parts [ $ i ] = rawurlencode ( $ parts [ $ i ] ) ; } else { $ parts [ $ i ] = rawurlencode ( utf8_encode ( $ parts [ $ i ] ) ) ; } } return implode ( '/' , $ parts ) ; }
docstring: Private method translate_uri
  
  translates an uri to raw url encoded string.
  Removes any html entity in uri
  @param string uri
  @return string translated_uri
  @access private
docstring_tokens: Private method translate_uri