Changeset 28
- Timestamp:
- 20.07.2005 22:33:48 (3 years ago)
- Location:
- trunk/File/Bittorrent
- Files:
-
- 2 modified
-
Decode.php (modified) (1 diff)
-
Encode.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/File/Bittorrent/Decode.php
r24 r28 304 304 // Move Pointer after string 305 305 $this->_position = $pos_colon + $str_length + 1; 306 $return = utf8_decode($return);307 306 return $return; 308 307 } -
trunk/File/Bittorrent/Encode.php
r18 r28 91 91 function encode_string($str) 92 92 { 93 $str = utf8_encode($str);94 93 return sprintf('%s:%s', strlen($str), $str); 95 94 }