Changeset 47 for trunk/Base/UTF8.php
- Timestamp:
- Jul 27, 2014, 9:14:56 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 2 1 config.php 2 .project
-
- Property svn:ignore
-
trunk/Base/UTF8.php
r40 r47 21 21 ISO8859-1: iso1 22 22 Windows1257: win1257 23 23 24 24 example: $new_string=to_utf8($some_string,"win1250"); 25 25 */ … … 28 28 /* 29 29 translation table - actually, it's array where key is hexadecimal number of 30 character in ISO8859-2/Windows1250 and value is its two byte representation in UTF-8 30 character in ISO8859-2/Windows1250 and value is its two byte representation in UTF-8 31 31 */ 32 32 … … 527 527 528 528 $Result = ''; 529 for($I = 0; $I < strlen($String); $I++) 529 for($I = 0; $I < strlen($String); $I++) 530 530 { 531 531 if(ord($String[$I]) < 128) $Result .= $String[$I]; … … 563 563 return($Result); 564 564 } 565 566 ?>
Note:
See TracChangeset
for help on using the changeset viewer.