Skip to content

Lỗi khi chuyển dữ liệu có các ký tự đặc biệt #30

@vuthao

Description

@vuthao

Ví dụ link: https://www.dropbox.com/s/8g89vateg5bxphh/Basic-Guide-To-OER-Vi-30062012.pdf

Khi lưu ở bản 3.4 là: https://www.d-ropbox.com/s/8g89vateg5bxphh/Basic-Guide-To-OER-Vi-30062012.pdf
Nhưng khi chuyyển sang bản 4.3 vẫn có https://www.d-ropbox.com

Do đó cần sửa lại để khi chuyển đổi tất cả các cột là text cần chạy qua hàm:

    function unfixdb ( $value )
    {
        $value = preg_replace( array( 
            "/(se)\-(lect)/i", "/(uni)\-(on)/i", "/(con)\-(cat)/i", "/(c)\-(har)/i", "/(out)\-(file)/i", "/(al)\-(ter)/i", "/(in)\-(sert)/i", "/(d)\-(rop)/i", "/(f)\-(rom)/i", "/(whe)\-(re)/i", "/(up)\-(date)/i", "/(de)\-(lete)/i", "/(cre)\-(ate)/i" 
        ), "$1$2", $value );
        return $value;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions