---
title: "Discussion on \"A cast to five bytes and a two-character word\" | Hashnode"
description: "Discussion on \"A cast to five bytes and a two-character word\". First published on the Tech Style blog.\nCAST('中文' AS VARCHAR2(5)) asks for five bytes of a value that takes six. Each of the two characters is three bytes long in a UTF-8 database, so the fifth byte f"
url: "https://hashnode.com/posts/a-cast-to-five-bytes-and-a-two-character-word/6af6d3bbe9abe11193821938"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A cast to five bytes and a two-character word](https://rutba.hashnode.dev/a-cast-to-five-bytes-and-a-two-character-word?utm_source=hashnode&utm_medium=feed)

First published on the Tech Style blog. CAST('中文' AS VARCHAR2(5)) asks for five bytes of a value that takes six. Each of the two characters is three bytes long in a UTF-8 database, so the fifth byte f

4d ago · 3 min read · rutba.hashnode.dev  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#oracle](https://hashnode.com/tag/oracle)
-   [#database-migrations](https://hashnode.com/tag/database-migrations)
-   [#plsql](https://hashnode.com/tag/plsql)
-   [#sql](https://hashnode.com/tag/sql)

## Written by

[Ejaz Arain](https://hashnode.com/@ejazarain)

@ejazarain

  
[View profile](https://hashnode.com/@ejazarain)

We build Rutba, business software on one set of records, and Rutba Office, a free open-source office suite for Windows. Tech Style, UK.

We build Rutba, business software that keeps one set of records for the whole company, and Rutba Office, a free open-source office suite for Windows. Tech Style, UK.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
