Skip to content

Commit 8d1817f

Browse files
committed
Listing available harsets
1 parent 41f5776 commit 8d1817f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/helpers/Global.scala

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import models.MessageRepository
66
import play.api.{Application, GlobalSettings}
77
import com.github.mauricio.async.db.pool.{PoolConfiguration, ConnectionPool}
88
import com.github.mauricio.async.db.postgresql.util.URLParser
9+
import java.nio.charset.Charset
910

1011
/**
1112
* User: mauricio
@@ -22,6 +23,8 @@ object Global extends GlobalSettings {
2223
)
2324
}
2425

26+
printf("Available charsets are %s%n", Charset.availableCharsets())
27+
2528
if ( databaseConfiguration.charset == null || databaseConfiguration.charset.name() == null ) {
2629
throw new NullPointerException("charset is null")
2730
}

0 commit comments

Comments
 (0)