According to the DBCP documentation you need use the parameter connectionProperties
with value [propertyName=propertyValue;]*
, so in your case you should use something like:
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/view_db"
connectionProperties="useUnicode=yes;characterEncoding=utf8;"
maxActive="50"
(note the closing ;
!)