[pmwiki-users] Convert wiki to UTF-8?

Petko Yotov 5ko at 5ko.fr
Sat Jul 13 04:30:49 PDT 2024


I've added a recipe that migrates wiki page files and attachments from 
an older 8-bit encoding to UTF-8.

   https://www.pmwiki.org/wiki/Cookbook/MigrateUTF8

Please have a recent backup snapshot before proceeding, then follow the 
instructions.

This may or may not work on MacOSX filesystems.

Let me know if you were successful.

Petko

-- 
If you upgrade :  https://www.pmwiki.org/Upgrades

On 05/07/2024 15:44, Petko Yotov wrote:
> I started working on a recipe to migrate a wiki to UTF-8.
> 
> PmWiki already has the helper recode functions, and should be able to
> read and convert the page files with the old encoding correctly on the
> fly.
> 
> The recipe will rename the directories, page files, and uploads, that
> have international characters.
> 
> Could you tell me more about the installation to be migrated? If you
> prefer you can reply to me privately / off-list.
> 
> - Operating system
> - File system, e.g. ext4
> - PHP version
> - PmWiki version
> - How many wikigroups, and total pages?
> - What languages are used on the wiki?
> - Current encoding / charset (default is Latin1/cp1252)
> - Value of $UploadPrefixFmt if customized
> - Any custom $WikiDir or $WikiLibDirs which adds custom page stores
> such as PerGroupSubDirectories, CompressedPageStore, SQLite, or other
> 
> 
> Does the wiki have any attached files that have international
> characters in their names, or where the  wikigroup has international
> characters in the name?
> 
> Is the wiki reachable publicly and can I have a look?
> 
> Petko
> 
> 
> On 04/07/2024 13:47, Johan Bengtsson wrote:
>> Hi,
>> 
>> When reading:  https://www.pmwiki.org/wiki/PmWiki/UTF-8
>> 
>> it says:
>> 
>> "Enabling UTF-8 on existing wikis ↑
>> Currently, this is possible only if your group and page names, as well
>> as upload names, don't contain international characters. "
>> 
>> I have an old wiki with a lot of international characters in group &
>> page names that I would like to convert.
>> 
>> Any tips for doing this?
>> 
>> -Johan Bengtsson



More information about the pmwiki-users mailing list