Subject contains UTF-8 codes sometimes
This commit is contained in:
@@ -30,4 +30,14 @@ trait UseMongo
|
||||
{
|
||||
$this->attributes['msg'] = utf8_encode($value);
|
||||
}
|
||||
|
||||
public function getSubjectAttribute($value): string
|
||||
{
|
||||
return utf8_decode($value);
|
||||
}
|
||||
|
||||
public function setSubjectAttribute($value): void
|
||||
{
|
||||
$this->attributes['subject'] = utf8_encode($value);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user