4 lines
109 B
Rust
4 lines
109 B
Rust
fn main() {
|
|
let s = "文字化け"; // UTF-8
|
|
println!("Character length: {}", s.chars().count());
|
|
}
|