Skip to content

Commit

Permalink
Reorganize slides
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed May 5, 2024
1 parent 2a0e7fe commit 9222f79
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
9 changes: 9 additions & 0 deletions Slides/part2/what-a-character-encoding-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ Encoding - Details
![width:1150](encodings.png "Encoding Details")


## Where Do You Truncate?

How and where do you truncate string “Aß東𐐀”?

![width:1100](truncate.png "Truncate")

**TIP:** There is no easy answer. Use a library to truncate strings.


## Code Examples

Slides and all code examples are on GitHub
Expand Down
9 changes: 0 additions & 9 deletions Slides/part2/what-a-character-encoding-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,6 @@ Writer wtr = new OutputStreamWriter(fos, "UTF-8");
```


## Where Do You Truncate?

How and where do you truncate string “Aß東𐐀”?

![width:1100](truncate.png "Truncate")

**TIP:** There is no easy answer. Use a library to truncate strings.


## Code Examples

Slides and all code examples are on GitHub
Expand Down
6 changes: 0 additions & 6 deletions Slides/part2/what-a-character-encoding-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ fs.writeFile('test.txt', string, 'utf-8', function (err) {
```


## Explicitly Specify Encoding

**Always explicitly specify encoding to avoid cross-platform surprises.**
You may not always get errors - just garbled data.


## Code Examples

Slides and all code examples are on GitHub
Expand Down
6 changes: 0 additions & 6 deletions Slides/part2/what-a-character-encoding-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ with open("test.txt", "w", encoding="utf-8") as writer:
```


## Explicitly Specify Encoding

**Always explicitly specify encoding to avoid cross-platform surprises.**
You may not always get errors - just garbled data.


## Code Examples

Slides and all code examples are on GitHub
Expand Down

0 comments on commit 9222f79

Please sign in to comment.