Top "Truncation" questions

The process of shortening data by discarding a portion of it.

Smart way to truncate long strings

Does anyone have a more sophisticated solution/library for truncating strings with JavaScript and putting an ellipsis on the end, …

javascript string truncation
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'column_name'

I am using Java JDBC with MySQL and I get this error: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too …

java mysql truncation
How do I check if a char is a vowel?

This Java code is giving me trouble: String word = <Uses an input> int y = 3; char z; do { z = …

java string char indexof truncation
SQL Server truncation and 8192 limitation

In SQL Server 2005 I am trying to query a varchar(MAX) column which has some rows with text data that …

sql-server truncation
Truncated Data when Importing from Excel to an Access Memo Field

Access is truncating the data in a couple Memo fields when I am appending an Excel file. The field in …

excel ms-access truncate truncation
SQL Server silently truncates varchar's in stored procedures

According to this forum discussion, SQL Server (I'm using 2005 but I gather this also applies to 2000 and 2008) silently truncates any …

sql sql-server stored-procedures truncate truncation
Ellipsis in the middle of a text (Mac style)

I need to implement ellipsis ("...") in the middle of a text within a resizable element. Here is what it might …

javascript jquery css truncation
java integer rounding (division related)

I have run into a surprise with integer division not rounding down as expected. Simple code: public class HelloMath { public …

java integer rounding division truncation
call to undefined function mb_strimwidth

Months ago I made a short code that uses mb_strimwidth() to exactly fit some text into a table cell, …

php string laravel truncation mbstring
How can I get the full string of PHP’s getTraceAsString()?

I'm using getTraceAsString() to get a stack trace but the string is being truncated for some reason. Example, an exception …

php string exception truncation truncated