()
| 333 | |
| 334 | #[test] |
| 335 | fn test_detect_utf8_multibyte() { |
| 336 | // UTF-8 with multi-byte characters |
| 337 | let content = "Hello, 世界! Привет! 🎉".as_bytes(); |
| 338 | assert_eq!(Encoding::detect(content), Encoding::Utf8); |
| 339 | } |
| 340 | |
| 341 | #[test] |
| 342 | fn test_detect_utf8_bom() { |