Skip to content

Missing characters #4

Closed
Closed
@Niproblema

Description

@Niproblema

Hello i am using part of your code. FfdfFile class with following code(only the part with characters):

   if ($directory === null) {
        $directory = sys_get_temp_dir();
    }
    $filename = $filename;
    $fields = '';
    foreach ($data as $key => $value) {

        $utf16Value = mb_convert_encoding($value,'UTF-16BE', $encoding);

        // Escape parenthesis
        $utf16Value = strtr($utf16Value, array('(' => '\\(', ')' => '\\)'));
        $fields .= "<</T($key)/V(" . chr(0xFE) . chr(0xFF) . $utf16Value . ")>>\n";
    }

Problem is that some characters are missing like "čćđ", on the other hand there are "šž", which is nice but i need them all... I have tried few things but i can't quite get more characters working. If i open created .fdf file in notepad i can see an empty space where "č" should be. I am using .fdf file to fill out pdf and at the places with missing characters there is a blank spot..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions